aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 11:55:54 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 11:55:54 +0200
commite78e00a46f84ec6e528a7435575e6434813ba67c (patch)
treec51e24aae151fbddc9bf97ee1a17cc5b3769ba18
parenta385c3cbcc29219aecb6be663079149f992a20a6 (diff)
downloadpugl-e78e00a46f84ec6e528a7435575e6434813ba67c.tar.gz
pugl-e78e00a46f84ec6e528a7435575e6434813ba67c.tar.bz2
pugl-e78e00a46f84ec6e528a7435575e6434813ba67c.zip
Check pugl.hpp and pugl.ipp with IWYU
Apparently include-what-you-use only checks corresponding ".h" files by default.
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
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)