[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 10 18:46:21 PDT 2025
================
@@ -33,6 +33,9 @@ If CMake is configured with ``CLANG_TIDY_ENABLE_STATIC_ANALYZER=NO``,
:program:`clang-tidy` will not be built with support for the
``clang-analyzer-*`` checks or the ``mpi-*`` checks.
+If CMake is configured with ``CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS=NO``,
+:program:`clang-tidy` will not be built with support for query based checks.
+
----------------
HerrCai0907 wrote:
I think the most impactful points are compilation time and binary size, although I don't think the impact will be significant...
I am open to remove it, but as long as a small part of stackholders have this demand, we need to support it.
I think the key decision point here is whether it introduces complexity which is really harmful to understand code base. IMO, it does not.
https://github.com/llvm/llvm-project/pull/131804
More information about the cfe-commits
mailing list