mirror-llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/custom-query-check/override-clang-tidy.yml
Congcong Cai 584af2f89e
reapply "[clang-tidy] support query based custom check" (#159547)
reapply #131804 and #159289
Fixed cmake link issue.

---------

Co-authored-by: DeNiCoN <denicon1234@gmail.com>
Co-authored-by: Baranov Victor <bar.victor.2002@gmail.com>
2025-09-19 21:47:57 +08:00

11 lines
280 B
YAML

CustomChecks:
- Name: avoid-long-type
Query: |
match varDecl(
hasType(asString("long")),
hasTypeLoc(typeLoc().bind("long"))
)
Diagnostic:
- BindName: long
Message: use 'int' instead of 'long' override
Level: Warning