2013-07-29 16:19:24 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
)
|
|
|
|
|
|
|
|
add_clang_executable(clang-tidy
|
|
|
|
ClangTidyMain.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries(clang-tidy
|
2013-12-10 09:41:10 +08:00
|
|
|
clangAST
|
|
|
|
clangASTMatchers
|
2015-03-13 11:47:43 +08:00
|
|
|
clangBasic
|
2013-07-29 16:19:24 +08:00
|
|
|
clangTidy
|
2015-10-02 21:27:19 +08:00
|
|
|
clangTidyCERTModule
|
2015-10-06 21:31:00 +08:00
|
|
|
clangTidyCppCoreGuidelinesModule
|
2013-08-04 23:56:30 +08:00
|
|
|
clangTidyGoogleModule
|
2013-12-10 09:41:10 +08:00
|
|
|
clangTidyLLVMModule
|
2014-03-05 21:14:32 +08:00
|
|
|
clangTidyMiscModule
|
2015-08-14 21:17:11 +08:00
|
|
|
clangTidyModernizeModule
|
2014-10-26 09:41:14 +08:00
|
|
|
clangTidyReadabilityModule
|
2013-12-10 09:41:10 +08:00
|
|
|
clangTooling
|
2013-07-29 16:19:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS clang-tidy
|
|
|
|
RUNTIME DESTINATION bin)
|
|
|
|
|
2015-09-17 22:37:26 +08:00
|
|
|
install(PROGRAMS clang-tidy-diff.py DESTINATION share/clang)
|
|
|
|
install(PROGRAMS run-clang-tidy.py DESTINATION share/clang)
|