[cfe-dev] [LLVMdev] Source to source translation.

Garrison Venn gvenn.cfe.dev at gmail.com
Thu Oct 21 16:03:07 PDT 2010


Check out clang's ASTConsumer, and its various driver, and front end components. I cannot give you more details, as I'm 
about to start doing this myself, albeit from C++ source to a non-source foreign language library. However I believe
your goal is most definitely doable. 

Garrison

On Oct 20, 2010, at 16:57, Carlos Crespo wrote:

> Hello,
> 
> I'm trying to do a source to source translation from C++ code to C++ code. I want the output to contains some automatically inserted annotations, and the rest of the code exactly the same as it was before the processing. Is this possible with llvm?
> 
> Thanks.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the cfe-dev mailing list