mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-11 10:26:44 +00:00
301a437250
Summary: Clang releases include static libraries for clang-tidy but corresponding headers are missing in the tarball so these libraries are almost useless. Clang-tidy libraries can be useful for build custom clang-tidy with custom checks outside of llvm repo. List of clang-tidy libraries included in clang 9.0.1 release: lib/libclangTidyMPIModule.a lib/libclangTidyPlugin.a lib/libclangTidyBoostModule.a lib/libclangTidyCERTModule.a lib/libclangTidyAndroidModule.a lib/libclangTidyPortabilityModule.a lib/libclangTidyPerformanceModule.a lib/libclangTidyOpenMPModule.a lib/libclangTidyBugproneModule.a lib/libclangTidyZirconModule.a lib/libclangTidyCppCoreGuidelinesModule.a lib/libclangTidyGoogleModule.a lib/libclangTidyUtils.a lib/libclangTidyHICPPModule.a lib/libclangTidyModernizeModule.a lib/libclangTidyLLVMModule.a lib/libclangTidyAbseilModule.a lib/libclangTidyReadabilityModule.a lib/libclangTidyFuchsiaModule.a lib/libclangTidyMiscModule.a lib/libclangTidy.a lib/libclangTidyObjCModule.a Reviewers: smeenai, jdoerfert, alexfh, hokein, aaron.ballman Subscribers: mgehre, mgorny, xazax.hun, cfe-commits Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D73236
113 lines
2.6 KiB
CMake
113 lines
2.6 KiB
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_clang_library(clangTidy
|
|
ClangTidy.cpp
|
|
ClangTidyCheck.cpp
|
|
ClangTidyModule.cpp
|
|
ClangTidyDiagnosticConsumer.cpp
|
|
ClangTidyOptions.cpp
|
|
ClangTidyProfiling.cpp
|
|
ExpandModularHeadersPPCallbacks.cpp
|
|
GlobList.cpp
|
|
|
|
DEPENDS
|
|
ClangSACheckers
|
|
|
|
LINK_LIBS
|
|
clangAnalysis
|
|
clangAST
|
|
clangASTMatchers
|
|
clangBasic
|
|
clangFormat
|
|
clangFrontend
|
|
clangLex
|
|
clangRewrite
|
|
clangSema
|
|
clangSerialization
|
|
clangTooling
|
|
clangToolingCore
|
|
)
|
|
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
|
target_link_libraries(clangTidy PRIVATE
|
|
clangStaticAnalyzerCore
|
|
clangStaticAnalyzerFrontend
|
|
)
|
|
endif()
|
|
|
|
# Checks.
|
|
# If you add a check, also add it to ClangTidyForceLinker.h in this directory.
|
|
add_subdirectory(android)
|
|
add_subdirectory(abseil)
|
|
add_subdirectory(boost)
|
|
add_subdirectory(bugprone)
|
|
add_subdirectory(cert)
|
|
add_subdirectory(cppcoreguidelines)
|
|
add_subdirectory(darwin)
|
|
add_subdirectory(fuchsia)
|
|
add_subdirectory(google)
|
|
add_subdirectory(hicpp)
|
|
add_subdirectory(linuxkernel)
|
|
add_subdirectory(llvm)
|
|
add_subdirectory(misc)
|
|
add_subdirectory(modernize)
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
|
add_subdirectory(mpi)
|
|
endif()
|
|
add_subdirectory(objc)
|
|
add_subdirectory(openmp)
|
|
add_subdirectory(performance)
|
|
add_subdirectory(portability)
|
|
add_subdirectory(readability)
|
|
add_subdirectory(zircon)
|
|
set(ALL_CLANG_TIDY_CHECKS
|
|
clangTidyAndroidModule
|
|
clangTidyAbseilModule
|
|
clangTidyBoostModule
|
|
clangTidyBugproneModule
|
|
clangTidyCERTModule
|
|
clangTidyCppCoreGuidelinesModule
|
|
clangTidyDarwinModule
|
|
clangTidyFuchsiaModule
|
|
clangTidyGoogleModule
|
|
clangTidyHICPPModule
|
|
clangTidyLinuxKernelModule
|
|
clangTidyLLVMModule
|
|
clangTidyMiscModule
|
|
clangTidyModernizeModule
|
|
clangTidyObjCModule
|
|
clangTidyOpenMPModule
|
|
clangTidyPerformanceModule
|
|
clangTidyPortabilityModule
|
|
clangTidyReadabilityModule
|
|
clangTidyZirconModule
|
|
)
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
|
list(APPEND ALL_CLANG_TIDY_CHECKS clangTidyMPIModule)
|
|
endif()
|
|
set(ALL_CLANG_TIDY_CHECKS ${ALL_CLANG_TIDY_CHECKS} PARENT_SCOPE)
|
|
|
|
# Other subtargets. These may reference ALL_CLANG_TIDY_CHECKS
|
|
# and must be below its definition.
|
|
add_subdirectory(plugin)
|
|
add_subdirectory(tool)
|
|
add_subdirectory(utils)
|
|
|
|
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
|
install(DIRECTORY .
|
|
DESTINATION include/clang-tidy
|
|
COMPONENT clang-tidy-headers
|
|
FILES_MATCHING
|
|
PATTERN "*.h"
|
|
)
|
|
add_custom_target(clang-tidy-headers)
|
|
set_target_properties(clang-tidy-headers PROPERTIES FOLDER "Misc")
|
|
if(NOT LLVM_ENABLE_IDE)
|
|
add_llvm_install_targets(install-clang-tidy-headers
|
|
DEPENDS clang-tidy-headers
|
|
COMPONENT clang-tidy-headers)
|
|
endif()
|
|
endif()
|