[cfe-dev] using clang for refactoring tool

Fariborz Jahanian fjahanian at apple.com
Thu Jan 31 13:45:37 PST 2008


We do refactoring of objective-c to c. You can look at Driver/ 
RewriteTest.cpp to see one such refactoring.

- Fariborz

On Jan 31, 2008, at 1:03 PM, Csaba Hruska wrote:

> Hi!
> I'm not new to clang, but i still need some help. I'd like to   
> develop a simple (interactive) refactoring tool, and i've checked  
> the clang AST API.
> How can i hold the AST in memory ? should i use ParseAST function  
> with my custom ASTConsumer what stores the Declarations ?
> Are the AST roots the TopLevelDecls ?
> Who owns the top level decls ?
>
> thanks for help
>
> Cheers,
> Csaba
> _______________________________________________
> 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