[cfe-dev] Parent of an AST node?

steve naroff snaroff at apple.com
Thu Jul 31 16:10:57 PDT 2008


On Jul 31, 2008, at 3:44 PM, Nico Weber wrote:

> Hi,
>
> how can I get the parent of an AST node?
>
> I have a DeclRefExpr object and would like the name of the function
> it's contained in. Does clang offer this functionality or do I have to
> keep track of parents myself?
>

You need to keep track of it yourself...

snaroff

> Thanks,
> Nico
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list