From 018887074fd25e7c0865c5c8f8b377d54e87c948 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 21:23:17 +0200 Subject: Check all implementation files with IWYU --- wscript | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index a5c86bf..d42247a 100644 --- a/wscript +++ b/wscript @@ -581,8 +581,12 @@ 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", "--", - "-Xiwyu", "--check_also=*.hpp", - "-Xiwyu", "--check_also=*.ipp"] + "-Xiwyu", "--check_also=pugl/*.h", + "-Xiwyu", "--check_also=pugl/*.hpp", + "-Xiwyu", "--check_also=pugl/*.ipp", + "-Xiwyu", "--check_also=pugl/detail/*.c", + "-Xiwyu", "--check_also=pugl/detail/*.h", + "-Xiwyu", "--check_also=pugl/detail/*.m"] output = subprocess.check_output(cmd).decode('utf-8') if 'error: ' in output: sys.stdout.write(output) -- cgit v1.2.1