1 set(LLVM_LINK_COMPONENTS
6 if(CLANG_BUILT_STANDALONE)
7 # LLVMTestingSupport library is needed for clang-tidy tests.
8 if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
9 AND NOT TARGET LLVMTestingSupport)
10 add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
15 get_filename_component(CLANG_LINT_SOURCE_DIR
16 ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-tidy REALPATH)
17 include_directories(${CLANG_LINT_SOURCE_DIR})
18 include_directories(BEFORE "${CMAKE_CURRENT_SOURCE_DIR}/../../include-cleaner/include")
20 add_extra_unittest(ClangTidyTests
22 ClangTidyDiagnosticConsumerTest.cpp
23 ClangTidyOptionsTest.cpp
24 DeclRefExprUtilsTest.cpp
25 IncludeCleanerTest.cpp
26 IncludeInserterTest.cpp
30 ModernizeModuleTest.cpp
31 NamespaceAliaserTest.cpp
33 OptionsProviderTest.cpp
34 OverlappingReplacementsTest.cpp
36 ReadabilityModuleTest.cpp
37 TransformerClangTidyCheckTest.cpp
40 clang_target_link_libraries(ClangTidyTests
53 target_link_libraries(ClangTidyTests
56 clangTidyAndroidModule
60 clangTidyModernizeModule
62 clangTidyReadabilityModule
64 LLVMTestingAnnotations