aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 21:23:17 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 21:23:17 +0200
commit018887074fd25e7c0865c5c8f8b377d54e87c948 (patch)
treea586c4e709ea2b1741352e8c576245b317f091cc /wscript
parent88e23c4ae1336978218dc4f623ef61343f41b532 (diff)
downloadpugl-018887074fd25e7c0865c5c8f8b377d54e87c948.tar.gz
pugl-018887074fd25e7c0865c5c8f8b377d54e87c948.tar.bz2
pugl-018887074fd25e7c0865c5c8f8b377d54e87c948.zip
Check all implementation files with IWYU
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 6 insertions, 2 deletions
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)