set(MODULE TRUE)
-set( LLVM_LINK_COMPONENTS support mc)
+set( LLVM_LINK_COMPONENTS
+ Support
+ )
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
)
target_link_libraries(PrintFunctionNames
- clangFrontend
clangAST
+ clangBasic
+ clangFrontend
)
set_target_properties(PrintFunctionNames
set(MODULE TRUE)
-set( LLVM_LINK_COMPONENTS support mc)
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
)
target_link_libraries(SampleAnalyzerPlugin
+ clangAST
+ clangAnalysis
clangStaticAnalyzerCore
)
set(LLVM_LINK_COMPONENTS
- jit
- interpreter
+ Core
+ ExecutionEngine
+ JIT
+ Support
nativecodegen
- asmparser
- bitreader
- bitwriter
- irreader
- codegen
- ipo
- linker
- selectiondag
)
add_clang_executable(clang-interpreter
)
target_link_libraries(clang-interpreter
- clangFrontend
- clangSerialization
- clangDriver
- clangCodeGen
- clangSema
- clangStaticAnalyzerFrontend
- clangStaticAnalyzerCheckers
- clangStaticAnalyzerCore
- clangAnalysis
- clangRewriteCore
- clangRewriteFrontend
- clangAST
- clangParse
- clangLex
clangBasic
+ clangCodeGen
+ clangDriver
+ clangFrontend
)
-set( LLVM_LINK_COMPONENTS
- support
- mc
- )
-
add_clang_executable(c-arcmt-test
c-arcmt-test.c
)
-set( LLVM_LINK_COMPONENTS
- support
- mc
- )
-
add_clang_executable(c-index-test
c-index-test.c
)
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- support
- mc
+ Option
+ Support
)
add_clang_executable(clang-check
)
target_link_libraries(clang-check
- clangTooling
+ clangAST
clangBasic
+ clangDriver
+ clangFrontend
clangRewriteFrontend
clangStaticAnalyzerFrontend
+ clangTooling
)
install(TARGETS clang-check
set(LLVM_LINK_COMPONENTS support)
-set(LLVM_USED_LIBS clangFormat clangTooling clangBasic clangAST)
add_clang_executable(clang-format
ClangFormat.cpp
)
target_link_libraries(clang-format
+ clangBasic
clangFormat
+ clangLex
+ clangRewriteCore
clangTooling
- clangBasic
- clangRewriteFrontend
)
install(TARGETS clang-format RUNTIME DESTINATION bin)
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- support
- mc
+ Support
)
add_clang_executable(diagtool
target_link_libraries(diagtool
clangBasic
- clangLex
- clangSema
clangFrontend
)
set( LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- bitwriter
- irreader
- codegen
- instrumentation
- ipo
- linker
- selectiondag
+ Analysis
+ Core
+ IPA
+ IPO
+ InstCombine
+ Instrumentation
+ MC
+ MCParser
+ ObjCARCOpts
+ Option
+ ScalarOpts
+ Support
+ TransformUtils
+ Vectorize
)
add_clang_executable(clang
)
target_link_libraries(clang
- clangFrontendTool
- clangAST
- clangAnalysis
clangBasic
- clangCodeGen
clangDriver
- clangEdit
clangFrontend
- clangLex
- clangParse
- clangEdit
- clangSema
- clangSerialization
+ clangFrontendTool
)
if(CLANG_ENABLE_STATIC_ANALYZER)
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- support
- bitreader
- mc
+ BitReader
+ Support
)
set(SOURCES
)
set(LIBRARIES
- clangIndex
clangARCMigrate
- clangRewriteCore
- clangRewriteFrontend
- clangFrontend
- clangDriver
- clangSerialization
- clangSema
- clangEdit
clangAST
+ clangBasic
+ clangFrontend
+ clangIndex
clangLex
+ clangSema
clangTooling
- clangBasic
)
set(GENERATED_HEADERS
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
+
add_clang_unittest(ASTTests
ASTContextParentMapTest.cpp
ASTTypeTraitsTest.cpp
)
target_link_libraries(ASTTests
- clangAST clangASTMatchers clangTooling
+ clangAST
+ clangASTMatchers
+ clangBasic
+ clangFrontend
+ clangTooling
)
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- support
- mc
+ Support
)
add_clang_unittest(ASTMatchersTests
ASTMatchersTest.cpp)
target_link_libraries(ASTMatchersTests
- gtest gtest_main clangASTMatchers clangTooling)
+ clangAST
+ clangASTMatchers
+ clangBasic
+ clangFrontend
+ clangTooling
+ )
add_subdirectory(Dynamic)
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
+
add_clang_unittest(DynamicASTMatchersTests
VariantValueTest.cpp
ParserTest.cpp
RegistryTest.cpp)
target_link_libraries(DynamicASTMatchersTests
- gtest gtest_main clangASTMatchers clangDynamicASTMatchers clangTooling)
+ clangAST
+ clangASTMatchers
+ clangDynamicASTMatchers
+ clangFrontend
+ clangTooling
+ )
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
+
add_clang_unittest(BasicTests
CharInfoTest.cpp
FileManagerTest.cpp
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- support
- mc
+ Support
)
add_clang_unittest(FormatTests
)
target_link_libraries(FormatTests
- clangAST
clangFormat
clangTooling
- clangRewriteCore
)
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- support
- mc
+ Support
)
add_clang_unittest(FrontendTests
FrontendActionTest.cpp
)
target_link_libraries(FrontendTests
+ clangAST
clangFrontend
)
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
+
add_clang_unittest(LexTests
LexerTest.cpp
PPCallbacksTest.cpp
)
target_link_libraries(LexTests
- clangLex clangParse clangSema
+ clangAST
+ clangBasic
+ clangLex
+ clangParse
+ clangSema
)
+set(LLVM_LINK_COMPONENTS
+ Support
+ )
+
add_clang_unittest(SemaTests
ExternalSemaSourceTest.cpp
)
target_link_libraries(SemaTests
- clangAST clangASTMatchers clangTooling
+ clangAST
+ clangBasic
+ clangFrontend
+ clangParse
+ clangSema
+ clangTooling
)
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
- asmparser
- bitreader
- support
- mc
+ Support
)
add_clang_unittest(ToolingTests
target_link_libraries(ToolingTests
clangAST
- clangTooling
+ clangASTMatchers
+ clangBasic
+ clangFrontend
+ clangLex
clangRewriteCore
+ clangTooling
)