DeclRefExpr nodes from AST.

Hi

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 ?

Thanks
Mohit Asudani

Check out the RecursiveASTVisitor.

  • Doug