<html><head><base href="x-msg://46/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 11, 2011, at 2:22 AM, Mohit Asudani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">Hi<div><br></div><div><br></div><div><br></div><div>I have made my own ASTConsumer. I want to traverse entire program AST and look for all DeclRefExpr and MemberExpr Nodes.</div><div>I have reference to ASTContext ( within HandleTranslationUnit() ), how should I proceed from this reference to starting node of AST for traversal ?</div></div></span></blockquote><br>Check out the RecursiveASTVisitor.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- Doug</div><br></body></html>