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

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 19 07:37:40 PDT 2025


nico wrote:

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?

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


More information about the cfe-commits mailing list