Rewriting back-annotated code

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?

Thanks in advance for your help.

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.

  - Doug