From 31f6cebee2581bf48f16ce99394a82509594faaa Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sat, 5 Feb 2022 18:53:54 +0100 Subject: [PATCH] Added include-what-you-use makefile target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 3ed817cb..231f3eed 100644 --- a/Makefile +++ b/Makefile @@ -71,3 +71,9 @@ init_compile_commands: debug .PHONY: clang-format clang-format: docker run --rm -v $(CURDIR):/root/sources bkryza/clang-format-check:1.3 + +.PHONY: iwyu_fixes +iwyu_fixes: debug + python3 $(shell which iwyu_tool.py) -p debug > debug/iwyu.out + python3 $(shell which fix_includes.py) -h --re_only="${PWD}/src/.*" < debug/iwyu.out + python3 $(shell which fix_includes.py) -h --re_only="${PWD}/tests/.*" < debug/iwyu.out