[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 19 07:02:24 PDT 2025


================
@@ -0,0 +1,20 @@
+set(LLVM_LINK_COMPONENTS
+  support
+  )
+
+add_clang_library(clangTidyCustomModule STATIC
+  CustomTidyModule.cpp
+  QueryCheck.cpp
+
+  LINK_LIBS
+  clangTidy
+  clangTidyUtils
+
+  DEPENDS
+  ClangDriverOptions
+  )
+
+clang_target_link_libraries(clangTidyCustomModule
+  PRIVATE
+  clangQuery
----------------
carlosgalvezp wrote:

Nice, something similar to what's done with the static-analyzer checks

https://github.com/llvm/llvm-project/pull/131804


More information about the cfe-commits mailing list