diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-06-05 13:31:45 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-06-05 13:31:45 +0000 |
commit | a46952221e44cb53b707bca433b5177191de779d (patch) | |
tree | 37dc2ed74d55a6923b224b86f55027fdf7e9991d /clang-tools-extra/clang-tidy/ClangTidyModule.h | |
parent | 57eba53a015e1541e6d8a89382a23d9adc7ebf3b (diff) | |
download | bcm5719-llvm-a46952221e44cb53b707bca433b5177191de779d.tar.gz bcm5719-llvm-a46952221e44cb53b707bca433b5177191de779d.zip |
Allow per-file clang-tidy options.
Summary:
This patch makes it possible for clang-tidy clients to provide
different options for different translation units. The option, which doesn't
make sense to be file-dependent, was moved to a separate ClangTidyGlobalOptions
struct. Added parsing of ClangTidyOptions.
Reviewers: klimek
Reviewed By: klimek
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D3979
llvm-svn: 210260
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidyModule.h')
-rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidyModule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyModule.h b/clang-tools-extra/clang-tidy/ClangTidyModule.h index 00a5a8d4a63..625be7aa482 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyModule.h +++ b/clang-tools-extra/clang-tidy/ClangTidyModule.h @@ -87,7 +87,7 @@ public: /// /// The caller takes ownership of the return \c ClangTidyChecks. void createChecks(ChecksFilter &Filter, - SmallVectorImpl<ClangTidyCheck *> &Checks); + std::vector<std::unique_ptr<ClangTidyCheck>> &Checks); typedef std::map<std::string, CheckFactoryBase *> FactoryMap; FactoryMap::const_iterator begin() const { return Factories.begin(); } |