================
@@ -0,0 +1,31 @@
+// RUN: %check_clang_tidy %s readability-constant-operand-order %t -- -- 
-std=c++17
+// RUN: %check_clang_tidy %s readability-constant-operand-order %t -- 
-check-suffixes=LEFT -- -config="{CheckOptions:[{key: 
readability-constant-operand-order.PreferredConstantSide, value: Left}, {key: 
readability-constant-operand-order.BinaryOperators, value: '==,!='}]}" -- 
-std=c++17
+
+void swap_eq(int a) {
+  if (0 == a) {} // CHECK-MESSAGES: warning: constant operand should be on the 
Right side
----------------
zwuis wrote:

Please verify line numbers and column numbers. Ditto elsewhere.

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

Reply via email to