aboutsummaryrefslogtreecommitdiff
path: root/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-04-04Add a PragmaHandler Registry for plugins to add PragmaHandlers toJohn Brawn1-1/+37
This allows plugins which add AST passes to also define pragmas to do things like only enable certain behaviour of the AST pass in files where a certain pragma is used. Differential Revision: http://reviews.llvm.org/D18319 llvm-svn: 265295
2016-03-15Make it possible for AST plugins to enable themselves by defaultJohn Brawn1-0/+52
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. Differential Revision: http://reviews.llvm.org/D17959 llvm-svn: 263546