<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div><span style="line-height:1.7">i.e how could I get the </span><span style="line-height:19.0399990081787px">FunctionDecl object ?</span></div></div></blockquote><div><br></div><div>though not sure exactly what you would like to do, and what do you mean you get the BinaryOperator here is a hint based on my "poor" experience. There are to ways to find objects in AST:</div><div>-> using the visitor pattern</div><div>-> dynamic matchers. My favorite is to use the one based on matcher strings. </div><div><br></div><div>For this one you may use the clang-query tool or the tool I wrote cmatch (<a href="https://github.com/mobiphil/cmatch">https://github.com/mobiphil/cmatch</a>), or look in the code how they query the AST tree for certain types of nodes.</div><div><br></div></div>
</div></div>