[PATCH] D73236: [clang-tidy] Add clang-tidy headers to clang distribution
Dmitry Polukhin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 23 16:31:08 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG301a437250b0: [clang-tidy] Add clang-tidy headers to clang distribution (authored by DmitryPolukhin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73236/new/
https://reviews.llvm.org/D73236
Files:
clang-tools-extra/clang-tidy/CMakeLists.txt
Index: clang-tools-extra/clang-tidy/CMakeLists.txt
===================================================================
--- clang-tools-extra/clang-tidy/CMakeLists.txt
+++ clang-tools-extra/clang-tidy/CMakeLists.txt
@@ -94,3 +94,19 @@
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()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73236.240045.patch
Type: text/x-patch
Size: 820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200124/a961e088/attachment.bin>
More information about the cfe-commits
mailing list