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 | c97b8201c69c0c8c3e08884df5688db0c76b0164 (patch) | |
tree | 0242109a188892a1f0bf4d6b17d209af0840cabd /clang-tidy/ClangTidy.h | |
parent | d0680053c7f210afe31b5f22a39029e2a7fd12f5 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@332609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r-- | clang-tidy/ClangTidy.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h index 05576e0e..4ee38a04 100644 --- a/clang-tidy/ClangTidy.h +++ b/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. /// |