[cfe-dev] FW: changing the lexer or parser
Chris Lattner
clattner at apple.com
Mon Sep 22 21:32:18 PDT 2008
On Sep 22, 2008, at 7:16 PM, b.j.burgers at student.utwente.nl wrote:
> 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 ?
The objc rewriter does this and more, have you perused it?
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080922/3da17ce5/attachment.html>
More information about the cfe-dev
mailing list