1set(LLVM_LINK_COMPONENTS 2 Support 3 ) 4 5set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports) 6add_llvm_library(SampleAnalyzerPlugin MODULE BUILDTREE_ONLY MainCallChecker.cpp PLUGIN_TOOL clang) 7 8clang_target_link_libraries(SampleAnalyzerPlugin PRIVATE 9 clangAnalysis 10 clangAST 11 clangStaticAnalyzerCore 12 clangStaticAnalyzerFrontend 13 ) 14