[cfe-commits] [PATCH] review request - Added an option for allowing plugins to run before the default action.

MORITA Hajime morrita at gmail.com
Tue Apr 26 22:48:28 PDT 2011


(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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-an-option-for-allowing-plugins-to-run-before-t.patch
Type: application/octet-stream
Size: 13525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110426/fef5405a/attachment.obj>


More information about the cfe-commits mailing list