brintos

brintos / llvm-project-archived public Read only

0
0
Text · 370 B · 9ff757d Raw
11 lines · cpp
1// RUN: %check_clang_tidy %s bugprone-macro-parentheses %t -- -- -DVAL=0+02 3// The previous command-line is producing warnings and fixes with the source4// locations from a virtual buffer. VAL is replaced by '0+0'.5// Fixes could not be applied and should not be reported.6int foo() { return VAL; }7 8#define V 0+09int bar() { return V; }10// CHECK-FIXES: #define V (0+0)11