2013-07-29 16:19:24 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
)
|
|
|
|
|
|
|
|
get_filename_component(CLANG_LINT_SOURCE_DIR
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../clang-tidy REALPATH)
|
|
|
|
include_directories(${CLANG_LINT_SOURCE_DIR})
|
|
|
|
|
|
|
|
add_extra_unittest(ClangTidyTests
|
2014-04-08 20:27:49 +08:00
|
|
|
ClangTidyDiagnosticConsumerTest.cpp
|
2014-05-23 00:07:11 +08:00
|
|
|
ClangTidyOptionsTest.cpp
|
2015-08-11 19:37:48 +08:00
|
|
|
IncludeInserterTest.cpp
|
2014-03-18 12:46:45 +08:00
|
|
|
GoogleModuleTest.cpp
|
2014-10-26 09:41:14 +08:00
|
|
|
LLVMModuleTest.cpp
|
|
|
|
MiscModuleTest.cpp
|
2015-10-06 21:52:51 +08:00
|
|
|
OverlappingReplacementsTest.cpp
|
2014-10-26 09:41:14 +08:00
|
|
|
ReadabilityModuleTest.cpp)
|
2013-07-29 16:19:24 +08:00
|
|
|
|
|
|
|
target_link_libraries(ClangTidyTests
|
2013-12-10 09:41:10 +08:00
|
|
|
clangAST
|
|
|
|
clangASTMatchers
|
|
|
|
clangBasic
|
|
|
|
clangFrontend
|
2015-08-11 21:16:51 +08:00
|
|
|
clangLex
|
2013-07-29 16:19:24 +08:00
|
|
|
clangTidy
|
2013-08-04 23:56:30 +08:00
|
|
|
clangTidyGoogleModule
|
2013-12-10 09:41:10 +08:00
|
|
|
clangTidyLLVMModule
|
2014-03-18 12:46:45 +08:00
|
|
|
clangTidyMiscModule
|
2014-10-26 09:41:14 +08:00
|
|
|
clangTidyReadabilityModule
|
2014-09-23 08:53:38 +08:00
|
|
|
clangTidyUtils
|
2013-07-29 16:19:24 +08:00
|
|
|
clangTooling
|
2014-10-30 08:44:01 +08:00
|
|
|
clangToolingCore
|
2013-07-29 16:19:24 +08:00
|
|
|
)
|