summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/bugprone-macro-parentheses.cpp
blob: 53c22090a19611e6f5976093dfb0c0ed08955f98 (plain)
1
2
3
4
5
#define BAD1              -1
#define BAD2              1+2
#define BAD3(A)           (A+1)
#define BAD4(x)           ((unsigned char)(x & 0xff))
#define BAD5(X) A*B=(C*)X+2