[cfe-dev] Using Clang for a C Refactoring Tool

Patrick Flannery foster_flannery at yahoo.com
Thu Apr 10 17:59:22 PDT 2008


>Additionally, I  suspect we'd welcome code to do more in this area into the tree.  I  
>think clang would be a good place to do this.
>Also, because clang (and llvm) is built and designed as a set of  
>useful libraries for solving all sorts of problem, if there is a rough  
>area where the design could be improved to meet your specific needs, I  
>think we are interested in have that flexibility in clang.
 Refactoring is my goal as well.  I was originally attracted to clang because its design yields a much more expressive tree structure with detailed source locations, this makes refactoring easy in many situations.  I had a brief list of refactorings that I had worked on, for example renaming functions and variables, moving sections of code to different files and listing #include's which are not required in a given translation unit.  If there was some community interest in this, I would very much like to contribute my work.  One area which I have not spent enough time thinking about is what an interface for refactoring should look like.  If people had some suggestions regarding what they would like to see and how the respective pieces should interact I would appreciate it. 
Patrick 





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080410/5783ab92/attachment.html>


More information about the cfe-dev mailing list