diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-04-29 15:20:10 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-04-29 15:20:10 +0000 |
commit | 6c8a52b81336a8b9e02b60e72eaa393a051a8ac7 (patch) | |
tree | 663a8588d425934ca140ba75b4c9122bc44ae303 /clang-tidy/ClangTidy.h | |
parent | e8edbb569d5f0564c2e1e671194bf208b03ddef3 (diff) |
Add ClangTidyOptions to encapsulate all clang-tidy options.
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D3544
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r-- | clang-tidy/ClangTidy.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h index a6a326de..a7ba04c4 100644 --- a/clang-tidy/ClangTidy.h +++ b/clang-tidy/ClangTidy.h @@ -11,6 +11,7 @@ #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANG_TIDY_H #include "ClangTidyDiagnosticConsumer.h" +#include "ClangTidyOptions.h" #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/SourceManager.h" @@ -115,11 +116,10 @@ private: /// \brief Fills the list of check names that are enabled when the provided /// filters are applied. -std::vector<std::string> getCheckNames(StringRef EnableChecksRegex, - StringRef DisableChecksRegex); +std::vector<std::string> getCheckNames(const ClangTidyOptions &Options); /// \brief Run a set of clang-tidy checks on a set of files. -void runClangTidy(StringRef EnableChecksRegex, StringRef DisableChecksRegex, +void runClangTidy(const ClangTidyOptions &Options, const tooling::CompilationDatabase &Compilations, ArrayRef<std::string> Ranges, SmallVectorImpl<ClangTidyError> *Errors); |