diff options
author | David Robillard <d@drobilla.net> | 2020-10-21 21:23:17 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-21 21:23:17 +0200 |
commit | 018887074fd25e7c0865c5c8f8b377d54e87c948 (patch) | |
tree | a586c4e709ea2b1741352e8c576245b317f091cc | |
parent | 88e23c4ae1336978218dc4f623ef61343f41b532 (diff) | |
download | pugl-018887074fd25e7c0865c5c8f8b377d54e87c948.tar.gz pugl-018887074fd25e7c0865c5c8f8b377d54e87c948.tar.bz2 pugl-018887074fd25e7c0865c5c8f8b377d54e87c948.zip |
Check all implementation files with IWYU
-rw-r--r-- | wscript | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |