2013-07-29 16:19:24 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
support
|
|
|
|
)
|
|
|
|
|
2017-05-11 00:20:54 +08:00
|
|
|
add_clang_tool(clang-tidy
|
2013-07-29 16:19:24 +08:00
|
|
|
ClangTidyMain.cpp
|
|
|
|
)
|
2016-07-07 21:19:45 +08:00
|
|
|
add_dependencies(clang-tidy
|
|
|
|
clang-headers
|
|
|
|
)
|
2013-07-29 16:19:24 +08:00
|
|
|
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
|
2016-04-30 01:58:29 +08:00
|
|
|
clangTidyBoostModule
|
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
|
2017-03-20 01:23:23 +08:00
|
|
|
clangTidyHICPPModule
|
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
|
2016-08-03 04:29:35 +08:00
|
|
|
clangTidyMPIModule
|
2015-12-30 18:24:40 +08:00
|
|
|
clangTidyPerformanceModule
|
2014-10-26 09:41:14 +08:00
|
|
|
clangTidyReadabilityModule
|
2013-12-10 09:41:10 +08:00
|
|
|
clangTooling
|
2017-04-13 06:07:47 +08:00
|
|
|
clangToolingCore
|
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)
|