[clang-tidy] new check 'readability-redundant-preprocessor'
authorMiklos Vajna <vmiklos@vmiklos.hu>
Fri, 11 Jan 2019 07:59:47 +0000 (07:59 +0000)
committerMiklos Vajna <vmiklos@vmiklos.hu>
Fri, 11 Jan 2019 07:59:47 +0000 (07:59 +0000)
commit98ef5337c9dfab72ad8f93a83b6429dfd0da168e
treeca8a7fb7c972c6b88dcf918f44ff6b2358864325
parent114ad37c1dc805e1dfd694e076257f87f1b705d0
[clang-tidy] new check 'readability-redundant-preprocessor'

Finds potentially redundant preprocessor directives.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D54349

llvm-svn: 350922
clang-tools-extra/clang-tidy/readability/CMakeLists.txt
clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
clang-tools-extra/clang-tidy/readability/RedundantPreprocessorCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/readability/RedundantPreprocessorCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-preprocessor.rst [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/readability-redundant-preprocessor-ifdef.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/readability-redundant-preprocessor.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/readability-redundant-preprocessor.h [new file with mode: 0644]