File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1104,6 +1104,7 @@ clean-c:
11041104# Pinned lint toolchain; callers may override either binary explicitly.
11051105CLANG_TIDY ?= clang-tidy-22
11061106CLANG_FORMAT ?= clang-format-20
1107+ CLANG_TIDY_FLAGS ?= -Wno-unknown-warning-option
11071108CPPCHECK ?= cppcheck
11081109# Cppcheck is the long pole in the CI lint gate. Its own worker pool is safer
11091110# than partitioning LINT_SRCS across separate invocations because diagnostics,
@@ -1125,13 +1126,13 @@ LINT_TEST_SRCS = $(ALL_TEST_SRCS)
11251126# clang-tidy: deep static analysis (config in .clang-tidy)
11261127lint-tidy:
11271128 @echo "=== clang-tidy ==="
1128- @$(CLANG_TIDY) --quiet $(LINT_SRCS) -- $(CFLAGS_COMMON) $(SYSROOT_FLAG)
1129+ @$(CLANG_TIDY) --quiet $(LINT_SRCS) -- $(CFLAGS_COMMON) $(CLANG_TIDY_FLAGS) $( SYSROOT_FLAG)
11291130
11301131# clang-tidy, scoped to this commit's staged changes only (scripts/lint-tidy-diff.sh).
11311132# The pre-commit hook runs this instead of the full lint-tidy sweep above, so a
11321133# clean commit is not blocked by pre-existing findings elsewhere in the tree.
11331134lint-tidy-diff:
1134- @scripts/lint-tidy-diff.sh "$(CLANG_TIDY)" $(LINT_SRCS) -- $(CFLAGS_COMMON) $(SYSROOT_FLAG)
1135+ @scripts/lint-tidy-diff.sh "$(CLANG_TIDY)" $(LINT_SRCS) -- $(CFLAGS_COMMON) $(CLANG_TIDY_FLAGS) $( SYSROOT_FLAG)
11351136
11361137# cppcheck: complementary analysis (config in .cppcheck)
11371138lint-cppcheck:
You can’t perform that action at this time.
0 commit comments