[clang-tidy] Add a flag to enable alpha checkers
authorAlexander Kornienko <alexfh@google.com>
Thu, 17 May 2018 14:04:27 +0000 (14:04 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 17 May 2018 14:04:27 +0000 (14:04 +0000)
commit85a92c3f0b6068562554d709773f3250b3ff1702
treece12f3dcb0486eb516d3671755a98afa9e89aca5
parentcf210746038b4b7a31b8dffb937611d6d9afc4df
[clang-tidy] Add a flag to enable alpha checkers

Summary: The alpha checkers can already be enabled using the clang driver, this allows them to be enabled using the clang-tidy as well. This can make it easier to test the alpha checkers with projects which already support the compile_commands.json. It will also allow more people to give feedback and patches about the alpha checkers since they can run it as part of clang tidy checks.

Reviewers: aaron.ballman, hokein, ilya-biryukov, alexfh, lebedev.ri, xbolva00

Reviewed By: aaron.ballman, alexfh, lebedev.ri, xbolva00

Subscribers: xbolva00, NoQ, dcoughlin, lebedev.ri, xazax.hun, cfe-commits

Patch by Paul Fultz II!

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

llvm-svn: 332609
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidy.h
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/test/clang-tidy/enable-alpha-checks.cpp [new file with mode: 0644]