Skip to content

Commit db6c23a

Browse files
nwellnhofjgm
authored andcommitted
Enable clang-tidy checks explicitly
clang 22 removed clang-analyzer-* from the default checks, see - llvm/llvm-project#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.
1 parent 4f6359e commit db6c23a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,15 @@ libFuzzer:
104104

105105
lint: $(BUILDDIR)
106106
errs=0 ; \
107-
for f in `ls src/*.[ch] | grep -v "scanners.c"` ; \
108-
do echo $$f ; clang-tidy -header-filter='^build/.*' -p=build -warnings-as-errors='*' $$f || errs=1 ; done ; \
107+
for f in `ls src/*.[ch] | grep -v "scanners.c"` ; do \
108+
echo $$f ; \
109+
clang-tidy \
110+
-checks='clang-analyzer-*' \
111+
-header-filter='^build/.*' \
112+
-p=build \
113+
-warnings-as-errors='*' \
114+
$$f || errs=1 ; \
115+
done ; \
109116
exit $$errs
110117

111118
mingw:

0 commit comments

Comments
 (0)