[PATCH] Introduce MatchFinder::matchAST.
Manuel Klimek
klimek at google.com
Thu Nov 7 11:14:22 PST 2013
LG
================
Comment at: lib/ASTMatchers/ASTMatchFinder.cpp:758-762
@@ -757,7 +757,7 @@
}
Visitor.set_active_ast_context(&Context);
Visitor.onStartOfTranslationUnit();
Visitor.TraverseDecl(Context.getTranslationUnitDecl());
Visitor.onEndOfTranslationUnit();
Visitor.set_active_ast_context(NULL);
}
----------------
I'm wondring whether we now would want to just hand the ASTMatchFinder* down and call matchesAST from here?
http://llvm-reviews.chandlerc.com/D2115
BRANCH
clangquery5
ARCANIST PROJECT
clang
More information about the cfe-commits
mailing list