[PATCH] D17959: Make it possible for AST plugins to enable themselves by default
John Brawn via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 8 05:35:51 PST 2016
john.brawn created this revision.
john.brawn added reviewers: klimek, kfunk, milianw, rsmith.
john.brawn added a subscriber: cfe-commits.
john.brawn set the repository for this revision to rL LLVM.
Currently when an AST plugin is loaded it must then be enabled by passing -plugin pluginname or -add-plugin pluginname to the -cc1 command line. This patch adds a method to PluginASTAction which allows it to declare that the action happens before, instead of, or after the main AST action, plus the relevant changes to make the plugin action happen at that time automatically.
Note: patch was written before I noticed D15729, and probably needs adjusting to work with that.
Repository:
rL LLVM
http://reviews.llvm.org/D17959
Files:
docs/ClangPlugins.rst
examples/AnnotateFunctions/AnnotateFunctions.cpp
examples/AnnotateFunctions/CMakeLists.txt
examples/CMakeLists.txt
include/clang/Frontend/FrontendAction.h
include/clang/Frontend/FrontendOptions.h
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/FrontendAction.cpp
lib/FrontendTool/ExecuteCompilerInvocation.cpp
test/Frontend/plugin-annotate-functions.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17959.50037.patch
Type: text/x-patch
Size: 12084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160308/187dfcb3/attachment-0001.bin>
More information about the cfe-commits
mailing list