
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
12 lines
304 B
CMake
12 lines
304 B
CMake
if(NOT CLANG_BUILD_EXAMPLES)
|
|
set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL ON)
|
|
set(EXCLUDE_FROM_ALL ON)
|
|
endif()
|
|
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
|
add_subdirectory(analyzer-plugin)
|
|
endif()
|
|
add_subdirectory(clang-interpreter)
|
|
add_subdirectory(PrintFunctionNames)
|
|
add_subdirectory(AnnotateFunctions)
|