[cfe-commits] [PATCH] ClangPlugin tutorial

Sean Silva silvas at purdue.edu
Wed May 16 11:40:06 PDT 2012


I really like this. For explaining the invocation, maybe it would be
helpful to have a script like this one:
https://github.com/chisophugis/clang_plugin_example/blob/82bb85397b16aa585a27ce3474bde496fbc6f50b/invocation_builder.py

Basically, that script does the leg work of passing all the args to Clang
and prefixing everything properly. Maybe that script could be adapted to
actually exec clang with the proper command line.

Usage would be like:

./clang_plugin.py ./MyPlugin.so my-plugin <plugin args> -- <regular clang
args>

Does that sound like a good idea?

--Sean Silva

On Mon, May 14, 2012 at 9:16 AM, Manuel Klimek <klimek at google.com> wrote:

> Find a proposal for a short ClangPlugin tutorial attached.
>
> Cheers,
> /Manuel
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120516/f10f2585/attachment.html>


More information about the cfe-commits mailing list