[clang-tools-extra] [llvm] reapply "[clang-tidy] support query based custom check" (PR #159547)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 19 09:18:57 PDT 2025


HerrCai0907 wrote:

fixed in https://github.com/llvm/llvm-project/pull/159809

> These tests seem to fail when the new option is set to OFF:
> 
> ```
>   Clang Tools :: clang-tidy/checkers/custom/query-incorrect-query.cpp
>   Clang Tools :: clang-tidy/checkers/custom/query-partially-active-check.cpp
>   Clang Tools :: clang-tidy/checkers/custom/query.cpp
>   Clang Tools :: clang-tidy/infrastructure/custom-query-check.cpp
> ```
> 
> `CLANG_TIDY_ENABLE_STATIC_ANALYZER` has a toggle in clang-tools-extra/test/lit.site.cfg.py.in which is used to not run the tests that need that feature if it's off. This PR here probably needs something similar?
> 
> (originally at [#131804 (comment)](https://github.com/llvm/llvm-project/pull/131804#issuecomment-3312465207) but here makes more sense)



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


More information about the cfe-commits mailing list