diff options
author | Alexander Kornienko <alexfh@google.com> | 2018-05-17 14:04:27 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2018-05-17 14:04:27 +0000 |
commit | 85a92c3f0b6068562554d709773f3250b3ff1702 (patch) | |
tree | ce12f3dcb0486eb516d3671755a98afa9e89aca5 /clang-tools-extra/clang-tidy/ClangTidy.h | |
parent | cf210746038b4b7a31b8dffb937611d6d9afc4df (diff) | |
download | bcm5719-llvm-85a92c3f0b6068562554d709773f3250b3ff1702.tar.gz bcm5719-llvm-85a92c3f0b6068562554d709773f3250b3ff1702.zip |
[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
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidy.h')
-rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidy.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidy.h b/clang-tools-extra/clang-tidy/ClangTidy.h index 05576e0edef..4ee38a04ec0 100644 --- a/clang-tools-extra/clang-tidy/ClangTidy.h +++ b/clang-tools-extra/clang-tidy/ClangTidy.h @@ -210,7 +210,8 @@ private: /// \brief Fills the list of check names that are enabled when the provided /// filters are applied. -std::vector<std::string> getCheckNames(const ClangTidyOptions &Options); +std::vector<std::string> getCheckNames(const ClangTidyOptions &Options, + bool AllowEnablingAnalyzerAlphaCheckers); /// \brief Returns the effective check-specific options. /// @@ -218,7 +219,9 @@ std::vector<std::string> getCheckNames(const ClangTidyOptions &Options); /// effective options from all created checks. The returned set of options /// includes default check-specific options for all keys not overridden by \p /// Options. -ClangTidyOptions::OptionMap getCheckOptions(const ClangTidyOptions &Options); +ClangTidyOptions::OptionMap +getCheckOptions(const ClangTidyOptions &Options, + bool AllowEnablingAnalyzerAlphaCheckers); /// \brief Run a set of clang-tidy checks on a set of files. /// |