[cfe-dev] Rewriting back-annotated code
dgregor at apple.com
Thu Jul 8 08:19:41 PDT 2010
On Jul 7, 2010, at 11:51 PM, Simone Corbetta wrote:
> Hi all, I am new in using CLang. My problem is the following: I have an input source code and I have to rewrite the code with some additional function calls in specific points. How can I do that?
Take a look at the Rewriter library in Clang, and in particular the Objective-C rewriter (in lib/Rewrite/RewriteObjC.cpp), for an example of how to perform this kind of transformation. The Objective-C rewrite translates many Objective-C constructs into function calls.
More information about the cfe-dev