clang-tidy: Add checker that warns about missing parentheses in macros
authorDaniel Marjamaki <daniel.marjamaki@evidente.se>
Tue, 16 Jun 2015 14:27:31 +0000 (14:27 +0000)
committerDaniel Marjamaki <daniel.marjamaki@evidente.se>
Tue, 16 Jun 2015 14:27:31 +0000 (14:27 +0000)
commit302275a938141ab1af7b7d73007ae2ad3bc802bc
tree80678fb2205d26eb23593a469bec0af64888243d
parent3f9a1dca924ccb4472dcab37ea3ab521a894cfed
clang-tidy: Add checker that warns about missing parentheses in macros

* calculations in the replacement list should be inside parentheses
* macro arguments should be inside parentheses

llvm-svn: 239820
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/clang-tidy/misc/MacroParenthesesCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/misc/MacroParenthesesCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp [new file with mode: 0644]