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.
6int foo() { return VAL; }
7
8#define V 0+0
9int bar() { return V; }
10// CHECK-FIXES: #define V (0+0)
11

source code of clang-tools-extra/test/clang-tidy/checkers/bugprone/macro-parentheses-cmdline.cpp