[cfe-dev] Questions about using Clang for source to source transformation.

Jean-Daniel Dupas devlists at shadowlab.org
Thu May 6 03:48:54 PDT 2010


Le 6 mai 2010 à 12:33, mywayin2sky a écrit :

> Hello,
> 
> I'm working in a project involving source to source transformation of some arbitrary c code , I'm looking forward to using Clang
> my main problem is where to start , I can find approx. no documentation on topic
> 
> Any existing source to source sample codes based on clang that can be of help as a starting point ?
> I want to know the Clang APIs for building a AST and rewriting codes from the AST.
>  

Actually, the best source to source transformer example is the ObjC Rewriter (see lib/FrontEnd/RewriteObjC.cpp).


-- Jean-Daniel




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100506/dcb35c2e/attachment.html>


More information about the cfe-dev mailing list