FW: changing the lexer or parser

Hello,

I’m working on a tool that allows time construct in C. I implemented this tool by adapting Clang.

I managed to do some code transformation, but I also like to add a header to the ‘#include’ list of the new file that contains the transformed code. What would be the easiest way to do this ?

Thanks for any help,

Bas Burgers

ATT43099326.txt (143 Bytes)

The objc rewriter does this and more, have you perused it?

-Chris