[cfe-dev] RE : AST Transformation

Argyrios Kyrtzidis kyrtzidis at apple.com
Mon Apr 4 10:44:43 PDT 2011


On Apr 4, 2011, at 10:38 AM, David Chisnall wrote:

> On 4 Apr 2011, at 17:27, Argyrios Kyrtzidis wrote:
> 
>>> A good project for someone interested in AST transforms would be a subclass of RecursiveASTVisitor that generated a copy of the AST by walking each node in turn and adding an equivalent node to a new AST. Users could then subclass this and use it to generate a new AST that differed from the original in only the specific ways that they desired.  
>> 
>> I think this is basically the functionality of TreeTransform, any effort should be directed at improving that one IMO.
> 
> I'd not noticed TreeTransform.  Is there a reason why its header is not public?  

At the time it was introduced Sema.h was not public, which is not the case now so I don't think there is a reason for not making it public anymore.

> 
> David




More information about the cfe-dev mailing list