diff options
author | David Robillard <d@drobilla.net> | 2020-10-21 11:55:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-21 11:55:54 +0200 |
commit | e78e00a46f84ec6e528a7435575e6434813ba67c (patch) | |
tree | c51e24aae151fbddc9bf97ee1a17cc5b3769ba18 /wscript | |
parent | a385c3cbcc29219aecb6be663079149f992a20a6 (diff) | |
download | pugl-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.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |