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