[cfe-dev] [analyzer] How to walk AST template instantiations
Artem Dergachev via cfe-dev
cfe-dev at lists.llvm.org
Tue Nov 3 00:22:17 PST 2015
Hello,
> What is the best way for analysis AST visitors to visit template
> instantiations?
As a quick workaround, you can subscribe on check::EndOfTranslationUnit
(which is not a path-sensitive callback, even though it fires (once)
after all path-sensitive callbacks if they are at all triggered) and
then use any combinations of StmtVisitor's and DeclVisitor's, or even
ASTMatchers, over the TranslationUnitDecl (the whole AST), for very
fine-grained control over what stuff you do and do not visit.
More information about the cfe-dev
mailing list