Summary: This is going to be used for a clang-tidy-diff script to display warnings in changed lines only. The option uses JSON, as its value is not intended to be entered manually. Reviewers: klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3873 llvm-svn: 209450
27 lines
550 B
CMake
27 lines
550 B
CMake
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
|
|
ClangTidyDiagnosticConsumerTest.cpp
|
|
ClangTidyOptionsTest.cpp
|
|
LLVMModuleTest.cpp
|
|
GoogleModuleTest.cpp
|
|
MiscModuleTest.cpp)
|
|
|
|
target_link_libraries(ClangTidyTests
|
|
clangAST
|
|
clangASTMatchers
|
|
clangBasic
|
|
clangFrontend
|
|
clangTidy
|
|
clangTidyGoogleModule
|
|
clangTidyLLVMModule
|
|
clangTidyMiscModule
|
|
clangTooling
|
|
)
|