================
@@ -0,0 +1,12 @@
+// RUN: %check_clang_tidy -std=c++98-or-later 
--extra-arg=-Wno-error=parentheses %s bugprone-chained-comparison %t -- 
-config="{CheckOptions: {bugprone-chained-comparison.IgnoreMacros: true}}"
+
+#define CHAINED_COMPARE(a, b, c) (a < b < c)
+
+void macro_test(int x, int y, int z) {
+    bool result = CHAINED_COMPARE(x, y, z);
+}
----------------
zeyi2 wrote:

I've added a couple of new testcases to test various scenarios, thanks for 
reviewing!

https://github.com/llvm/llvm-project/pull/171975
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to