================
@@ -123,7 +123,7 @@ void f(){
//CHECK-MESSAGES: :[[@LINE+3]]:77: warning: '-' has higher precedence than
'^'; add parentheses to explicitly specify the order of operations
[readability-math-missing-parentheses]
//CHECK-MESSAGES: :[[@LINE+2]]:94: warning: '/' has higher precedence than
'-'; add parentheses to explicitly specify the order of operations
[readability-math-missing-parentheses]
//CHECK-FIXES: int q = (1 MACRO_ADD (2 MACRO_MULTIPLY 3)) MACRO_OR ((4
MACRO_AND 5) MACRO_XOR (6 MACRO_SUBTRACT (7 MACRO_DIVIDE 8)));
- int q = 1 MACRO_ADD 2 MACRO_MULTIPLY 3 MACRO_OR 4 MACRO_AND 5 MACRO_XOR 6
MACRO_SUBTRACT 7 MACRO_DIVIDE 8; // No warning
+ int q = 1 MACRO_ADD 2 MACRO_MULTIPLY 3 MACRO_OR 4 MACRO_AND 5 MACRO_XOR 6
MACRO_SUBTRACT 7 MACRO_DIVIDE 8;
----------------
localspook wrote:
Yes warning!
https://github.com/llvm/llvm-project/pull/162851
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits