[cfe-dev] the farther node in AST

Manuel Klimek klimek at google.com
Tue Nov 20 07:08:52 PST 2012


On Tue, Nov 20, 2012 at 2:59 PM, Rambo <hunanlwm at sina.cn> wrote:

> Hi,
>
> I want to get a farther node of some one.for example:
> *printf("%d",num[i]);*
> I don't get the farther node of num[i] although I know it must be
> "printf()".
> I look for many papers but no one tell me how to do it ,can you tell me!
>

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.

Cheers,
/Manuel


>
> Best regards,
> Rambo
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/the-farther-node-in-AST-tp4028384.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121120/1b50f37a/attachment.html>


More information about the cfe-dev mailing list