From 119aed5bc787ccbf23d2f151759ec1f3a80977e1 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 19:44:46 +0100 Subject: chore(makefile): add include-what-you-use (iwyu) to makefile --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makefile') diff --git a/makefile b/makefile index a79c1218..9feeb30f 100644 --- a/makefile +++ b/makefile @@ -130,6 +130,14 @@ PHONY += defconfig defconfig: $(Q)$(MAKE) -f scripts/kconfig/makefile defconfig +include-what-you-use: compile_commands.json + $(Q)iwyu_tool.py -p. -j$(nproc) -- \ + --update_comments | \ + fix_includes.py --comments \ + --quoted_includes_first \ + --update_comments \ + --reorder + clang-tidy: compile_commands.json $(Q)clang-tidy -header-filter=.* -p=. $(shell find . -name '*.c' -o -name '*.h' | grep -v './scripts/\|dtoa\|linux\|arch\|bits') -- cgit v1.2.3