From 299a383d98f67fdd8ec5ce91f72b5d560ef4441e Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 29 Jul 2015 21:41:57 +0800 Subject: Makefile: add target for Include What You Use (iwyu) Requires http://include-what-you-use.org/ and Clang to operate. Doesn't quite work for the builtin_* collection; that has to be done by hand. --- Makefile.in | 7 +++++++ build_tools/iwyu.sh | 4 ++++ 2 files changed, 11 insertions(+) create mode 100755 build_tools/iwyu.sh diff --git a/Makefile.in b/Makefile.in index f6bc306d..45f922d6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -828,6 +828,13 @@ depend: ./config.status .PHONY: depend +# Include What You Use +iwyu: + # Requires the --keep-going flag as it always returns 1 + # Can't set MAKEFLAGS on a target-specific basic + $(MAKE) -k _iwyu CXX=include-what-you-use +_iwyu: clean $(PROGRAMS) +.PHONY: iwyu _iwyu # # Cleanup targets diff --git a/build_tools/iwyu.sh b/build_tools/iwyu.sh new file mode 100755 index 00000000..dc36796a --- /dev/null +++ b/build_tools/iwyu.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# Reminder of how to run Include What You Use + +make iwyu -- cgit v1.2.3