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 | 9d0412334ed4bd70b66e1934d537342ebfbd99ca (patch) | |
tree | 215c3b0dd717397c2f183ce26321c8af183cb6a5 /clang/lib | |
parent | faaf13109172214a68205446373f648fbcfa3a7d (diff) | |
download | bcm5719-llvm-9d0412334ed4bd70b66e1934d537342ebfbd99ca.tar.gz bcm5719-llvm-9d0412334ed4bd70b66e1934d537342ebfbd99ca.zip |
Allow matchers to access the ASTContext.
Patch by Edwin Vane.
llvm-svn: 169000
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/ASTMatchers/ASTMatchFinder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/ASTMatchers/ASTMatchFinder.cpp b/clang/lib/ASTMatchers/ASTMatchFinder.cpp index 04a2b353215..c13cf4a277f 100644 --- a/clang/lib/ASTMatchers/ASTMatchFinder.cpp +++ b/clang/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 |