[PATCH] D73236: [clang-tidy] Add clang-tidy headers to clang distribution

Dmitry Polukhin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 22 15:16:42 PST 2020


DmitryPolukhin created this revision.
DmitryPolukhin added a reviewer: smeenai.
DmitryPolukhin added a project: clang-tools-extra.
Herald added subscribers: xazax.hun, mgorny.
Herald added a reviewer: jdoerfert.
Herald added a project: clang.

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


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D73236

Files:
  clang-tools-extra/CMakeLists.txt


Index: clang-tools-extra/CMakeLists.txt
===================================================================
--- clang-tools-extra/CMakeLists.txt
+++ clang-tools-extra/CMakeLists.txt
@@ -31,3 +31,12 @@
 if (CLANG_ENABLE_CLANGD)
   add_subdirectory(clangd)
 endif()
+
+if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+  install(DIRECTORY clang-tidy
+    DESTINATION include
+    FILES_MATCHING
+    PATTERN "*.h"
+    PATTERN ".svn" EXCLUDE
+    )
+endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73236.239711.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200122/7763cedf/attachment-0001.bin>


More information about the cfe-commits mailing list