devtools: Add custom include-order-fixer to pre-commit.

Also fixes some exising file spacing issues. Preserves whitespace and
comments.

Assisted by Cursor Auto.
This commit is contained in:
Se7enZ
2025-12-13 15:00:39 +01:00
committed by Sangbida
parent 70fe02513c
commit 5ca181ec89
4 changed files with 416 additions and 1 deletions

View File

@@ -546,6 +546,11 @@ SRC_TO_CHECK := $(filter-out $(ALL_TEST_PROGRAMS:=.c), $(ALL_NONGEN_SOURCES))
check-src-includes: $(SRC_TO_CHECK:%=check-src-include-order/%)
check-hdr-includes: $(ALL_NONGEN_HEADERS:%=check-hdr-include-order/%)
print-src-to-check:
@echo $(SRC_TO_CHECK)
print-hdr-to-check:
@echo $(ALL_NONGEN_HEADERS)
# If you want to check a specific variant of quotes use:
# make check-source-bolt BOLTVERSION=xxx
ifeq ($(BOLTVERSION),$(DEFAULT_BOLTVERSION))