summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile8
1 files changed, 8 insertions, 0 deletions
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')