DeclRefExpr nodes from AST.


I have made my own ASTConsumer. I want to traverse entire program AST and look for all DeclRefExpr and MemberExpr Nodes.
I have reference to ASTContext ( within HandleTranslationUnit() ), how should I proceed from this reference to starting node of AST for traversal ?

Mohit Asudani

Check out the RecursiveASTVisitor.

  • Doug