diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-02-13 16:10:47 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-02-13 16:10:47 +0000 |
commit | c7a739b8c22bda31e06f3dd21196f2c72fd5526f (patch) | |
tree | c2aee98cc6a397b9455139382e31af498adf8ebc /clang-tidy/ClangTidyModule.h | |
parent | dc8b7dd2c3ab97eda872bfdde1ff1da9afabbebd (diff) |
Clang-tidy: don't create ASTConsumers not needed for the set of checks we perform.
Summary:
This doesn't have any significant effect on the performance, but it
looks like a good thing to do.
Reviewers: djasper, klimek
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2763
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@201340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidyModule.h')
-rw-r--r-- | clang-tidy/ClangTidyModule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tidy/ClangTidyModule.h b/clang-tidy/ClangTidyModule.h index 830cbd5b..47a69331 100644 --- a/clang-tidy/ClangTidyModule.h +++ b/clang-tidy/ClangTidyModule.h @@ -90,6 +90,7 @@ public: typedef std::map<std::string, CheckFactoryBase *> FactoryMap; FactoryMap::const_iterator begin() const { return Factories.begin(); } FactoryMap::const_iterator end() const { return Factories.end(); } + bool empty() const { return Factories.empty(); } private: FactoryMap Factories; |