[cfe-commits] [patch] -add-plugin
Nico Weber
thakis at chromium.org
Fri Jan 21 13:48:28 PST 2011
Hi,
the current -plugin flag swaps out codegen for a different plugin. I'd
like to able to run plugins in addition to codegen. The attached patch
adds support for -add-plugin, which does just that.
With this, it's for example very easy to run a plugin that dumps all
toplevel declarations to a file while building by just setting
CFLAGS="-Xclang -load -Xclang path/to/my/plugin.so -Xclang -add-plugin
-Xclang myplugin" and using the normal build system of one's project
(say, make or xcodebuild) – one can write a ctags program that
supports c++ in just a few lines of code.
If the flag is not present, the patch doesn't modify the current flow
at all. And changes to existing files are small.
Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-add-plugin.patch
Type: application/octet-stream
Size: 19009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110121/cce587c4/attachment.obj>
More information about the cfe-commits
mailing list