aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)