diff options
author | Manuel Klimek <klimek@google.com> | 2012-11-30 13:45:19 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2012-11-30 13:45:19 +0000 |
commit | 7f2d4804510799a1a19d72b2b089e48370ab8686 (patch) | |
tree | 60c716c99889f480e41b8adbbe19223f5d4bf6fc /lib/ASTMatchers/ASTMatchFinder.cpp | |
parent | 683b70c70dc47532af1215e4b1566de9d47a3be5 (diff) |
Allow matchers to access the ASTContext.
Patch by Edwin Vane.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ASTMatchers/ASTMatchFinder.cpp')
-rw-r--r-- | lib/ASTMatchers/ASTMatchFinder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ASTMatchers/ASTMatchFinder.cpp b/lib/ASTMatchers/ASTMatchFinder.cpp index 04a2b35321..c13cf4a277 100644 --- a/lib/ASTMatchers/ASTMatchFinder.cpp +++ b/lib/ASTMatchers/ASTMatchFinder.cpp @@ -475,6 +475,9 @@ public: return false; } + // Implements ASTMatchFinder::getASTContext. + virtual ASTContext &getASTContext() const { return *ActiveASTContext; } + bool shouldVisitTemplateInstantiations() const { return true; } bool shouldVisitImplicitCode() const { return true; } // Disables data recursion. We intercept Traverse* methods in the RAV, which |