[cfe-commits] [PATCH] ClangPlugin tutorial

Manuel Klimek klimek at google.com
Wed May 16 11:46:32 PDT 2012


On Wed, May 16, 2012 at 8:40 PM, Sean Silva <silvas at purdue.edu> wrote:
> 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?

If that script gets checked in, I think it'd be a good idea to mention
it - I still think that explaining how plugins work on the lowest
level provides some benefit for people who just want to do a low-level
build integration...

Cheers,
/Manuel

>
> --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
>>
>



More information about the cfe-commits mailing list