<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt">On Tue, Nov 20, 2012 at 2:59 PM, Rambo <span dir="ltr"><<a href="mailto:hunanlwm@sina.cn" target="_blank">hunanlwm@sina.cn</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I want to get a farther node of some one.for example:<br>
*printf("%d",num[i]);*<br>
I don't get the farther node of num[i] although I know it must be<br>
"printf()".<br>
I look for many papers but no one tell me how to do it ,can you tell me!<br></blockquote><div><br></div><div>Parent's are not in the AST. The easiest solution in my experience is to search for functions that have an argument that matches your num[i] node.</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best regards,<br>
Rambo<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/the-farther-node-in-AST-tp4028384.html" target="_blank">http://clang-developers.42468.n3.nabble.com/the-farther-node-in-AST-tp4028384.html</a><br>
Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div>