From 79fc6b82820b95864af222ce86c7e38ea647a5fb Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 10 Jun 2026 10:44:22 +0200 Subject: [PATCH] Enable clang-tidy checks explicitly clang 22 removed clang-analyzer-* from the default checks, see - https://github.com/llvm/llvm-project/issues/146482 - https://releases.llvm.org/22.1.0/tools/clang/tools/extra/docs/ReleaseNotes.html#potentially-breaking-changes This makes clang-tidy 22 abort with 'Error: no checks enabled'. Enable these checks explicitly. --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9efd70db1..6b390dcca 100644 --- a/Makefile +++ b/Makefile @@ -104,8 +104,15 @@ libFuzzer: lint: $(BUILDDIR) errs=0 ; \ - for f in `ls src/*.[ch] | grep -v "scanners.c"` ; \ - do echo $$f ; clang-tidy -header-filter='^build/.*' -p=build -warnings-as-errors='*' $$f || errs=1 ; done ; \ + for f in `ls src/*.[ch] | grep -v "scanners.c"` ; do \ + echo $$f ; \ + clang-tidy \ + -checks='clang-analyzer-*' \ + -header-filter='^build/.*' \ + -p=build \ + -warnings-as-errors='*' \ + $$f || errs=1 ; \ + done ; \ exit $$errs mingw: