From e78e00a46f84ec6e528a7435575e6434813ba67c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 11:55:54 +0200 Subject: Check pugl.hpp and pugl.ipp with IWYU Apparently include-what-you-use only checks corresponding ".h" files by default. --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index f10f7d7..12def7e 100644 --- a/wscript +++ b/wscript @@ -568,7 +568,9 @@ def lint(ctx): if "IWYU_TOOL" in ctx.env: Logs.info("Running include-what-you-use") - cmd = [ctx.env.IWYU_TOOL[0], "-o", "clang", "-p", "build"] + cmd = [ctx.env.IWYU_TOOL[0], "-o", "clang", "-p", "build", "--", + "-Xiwyu", "--check_also=*.hpp", + "-Xiwyu", "--check_also=*.ipp"] output = subprocess.check_output(cmd).decode('utf-8') if 'error: ' in output: sys.stdout.write(output) -- cgit v1.2.1