[cfe-dev] Back-navigation of the Syntax Tree!

Simone Pellegrini spellegrini at dps.uibk.ac.at
Fri Jan 30 01:41:32 PST 2009


Anyway,
the ParentMap definitely solved my problem! And actually the 
implementation/idea is very nice!
you CLANG guys kick ass! :P

regards, Simone

steve naroff wrote:
>
> On Jan 29, 2009, at 11:14 AM, Sebastian Redl wrote:
>
>> Sebastian Redl wrote:
>>> Your search result is correct. AST nodes do not save their parents, so
>>> there is no way of getting the parent of a node save by iterating the
>>> tree and looking.
>>>
>>
>> Apparently I'm talking out of my ass. Well, good to know that there is a
>> solution available.
>>
>
> Everything you said was actually true!
>
> The surface area of the API has gotten quite large...don't beat 
> yourself up for not knowing every API:-)
>
> snaroff
>
>> Sebastian
>> _______________________________________________
>> 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