Skip to content

Commit a9a884a

Browse files
rscharfegitster
authored andcommitted
coccicheck: use --all-includes by default
Add a make variable, SPATCH_FLAGS, for specifying flags for spatch, and set it to --all-includes by default. This option lets it consider header files which would otherwise be ignored. That's important for some rules that rely on type information. It doubles the duration of coccicheck, however. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 76dd98c commit a9a884a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ SPATCH = spatch
467467
export TCL_PATH TCLTK_PATH
468468

469469
SPARSE_FLAGS =
470+
SPATCH_FLAGS = --all-includes
470471

471472

472473

@@ -2314,7 +2315,7 @@ C_SOURCES = $(patsubst %.o,%.c,$(C_OBJ))
23142315
%.cocci.patch: %.cocci $(C_SOURCES)
23152316
@echo ' ' SPATCH $<; \
23162317
for f in $(C_SOURCES); do \
2317-
$(SPATCH) --sp-file $< $$f; \
2318+
$(SPATCH) --sp-file $< $$f $(SPATCH_FLAGS); \
23182319
done >$@ 2>$@.log; \
23192320
if test -s $@; \
23202321
then \

0 commit comments

Comments
 (0)