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
clang-add-plugin.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
