[clang-tools-extra] [llvm] reapply "[clang-tidy] support query based custom check" (PR #159547)
Ingo Müller via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 05:54:35 PDT 2025
https://github.com/ingomueller-net requested changes to this pull request.
Sorry, spoke too soon. Building `clang-tidy` still has a lot of problems. The first one is the following but there are too many to copy them here.
```
ld.lld: error: undefined symbol: clang::ast_matchers::MatchFinder::addDynamicMatcher(clang::ast_matchers::internal::DynTypedMatcher const&, clang::ast_matchers::MatchFinder::MatchCallback*)
>>> referenced by QueryCheck.cpp:123 (/usr/local/google/home/ingomueller/git/llvm-project/clang-tools-extra/clang-tidy/custom/QueryCheck.cpp:123)
>>> tools/clang/tools/extra/clang-tidy/custom/CMakeFiles/obj.clangTidyCustomModule.dir/QueryCheck.cpp.o:(clang::tidy::custom::QueryCheck::registerMatchers(clang::ast_matchers::MatchFinder*))
```
Did you try to build with `BUILD_SHARED_LIB`?
https://github.com/llvm/llvm-project/pull/159547
More information about the llvm-commits
mailing list