(Re-sending to follow the right way.)
Hi folks,

On cfe-dev, I read some discussions about AST modification using
plugins, and see the code around FrontendAction and AST.
With some understanding what the limitations are, I think AST
modification will be useful even if with such limitations. So I wrote
the attached patch for inserting plugin before the default action like
the code generation.

My goal is to allow plugins to insert some instrumentation function
calls. So we might need some more hooks for such type of
operation. But I think this could be a good small first step for that.

What do you think?
Any suggestions are appreciated!

Regards,
--
morrita

Attachment: 0001-Added-an-option-for-allowing-plugins-to-run-before-t.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to