1set(LLVM_LINK_COMPONENTS 2 FrontendOpenMP 3 Support 4 ) 5 6get_filename_component(CLANG_LINT_SOURCE_DIR 7 ${CMAKE_CURRENT_SOURCE_DIR}/../../clang-tidy REALPATH) 8include_directories(${CLANG_LINT_SOURCE_DIR}) 9 10add_extra_unittest(ClangTidyTests 11 AddConstTest.cpp 12 ClangTidyDiagnosticConsumerTest.cpp 13 ClangTidyOptionsTest.cpp 14 IncludeInserterTest.cpp 15 GlobListTest.cpp 16 GoogleModuleTest.cpp 17 LLVMModuleTest.cpp 18 NamespaceAliaserTest.cpp 19 ObjCModuleTest.cpp 20 OptionsProviderTest.cpp 21 OverlappingReplacementsTest.cpp 22 UsingInserterTest.cpp 23 ReadabilityModuleTest.cpp 24 TransformerClangTidyCheckTest.cpp 25 ) 26 27clang_target_link_libraries(ClangTidyTests 28 PRIVATE 29 clangAST 30 clangASTMatchers 31 clangBasic 32 clangFrontend 33 clangLex 34 clangSerialization 35 clangTooling 36 clangToolingCore 37 clangTransformer 38 ) 39target_link_libraries(ClangTidyTests 40 PRIVATE 41 clangTidy 42 clangTidyAndroidModule 43 clangTidyGoogleModule 44 clangTidyLLVMModule 45 clangTidyObjCModule 46 clangTidyReadabilityModule 47 clangTidyUtils 48 ) 49