[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 06:35:30 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:
Now clang-tidy is made to be dependent on clangQuery, which is a major change. Is this OK? How are build times affected?
It would be great to have @AaronBallman's opinion on this one :)
https://github.com/llvm/llvm-project/pull/131804
More information about the cfe-commits
mailing list