I really like this. For explaining the invocation, maybe it would be helpful to have a script like this one:<div><a href="https://github.com/chisophugis/clang_plugin_example/blob/82bb85397b16aa585a27ce3474bde496fbc6f50b/invocation_builder.py">https://github.com/chisophugis/clang_plugin_example/blob/82bb85397b16aa585a27ce3474bde496fbc6f50b/invocation_builder.py</a></div>
<div><br></div><div>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.</div>
<div><br></div><div>Usage would be like:</div><div><br></div><div>./clang_plugin.py ./MyPlugin.so my-plugin <plugin args> -- <regular clang args></div><div><br></div><div>Does that sound like a good idea?</div>
<div><br></div><div>--Sean Silva</div><div><br><div class="gmail_quote">On Mon, May 14, 2012 at 9:16 AM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Find a proposal for a short ClangPlugin tutorial attached. <div><br></div><div>Cheers,</div><div>/Manuel</div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>