diff options
author | David Robillard <d@drobilla.net> | 2020-11-01 13:32:11 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-01 13:43:16 +0100 |
commit | f0f058dbeb40d016501328ed755392b46eefec9b (patch) | |
tree | 3fe5ede0194084d6475ee25c0d07cda271d565f5 /wscript | |
parent | 71a9fbf296928d3599743e88f72390ff827c5ab3 (diff) | |
download | pugl-f0f058dbeb40d016501328ed755392b46eefec9b.tar.gz pugl-f0f058dbeb40d016501328ed755392b46eefec9b.tar.bz2 pugl-f0f058dbeb40d016501328ed755392b46eefec9b.zip |
Run clang-tidy on all headers and fix various issues
It's a nightmare trying to get this thing to check everything.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -694,6 +694,7 @@ class LintContext(Build.BuildContext): def lint(ctx): "checks code for style issues" + import glob import json import subprocess @@ -736,9 +737,14 @@ def lint(ctx): c_files = [os.path.join('build', f) for f in files if f.endswith('.c')] + c_files += glob.glob('include/pugl/*.h') + c_files += glob.glob('src/implementation.h') + cpp_files = [os.path.join('build', f) for f in files if f.endswith('.cpp')] + cpp_files += glob.glob('bindings/cxx/include/pugl/*') + c_files = list(map(os.path.abspath, c_files)) cpp_files = list(map(os.path.abspath, cpp_files)) @@ -749,7 +755,7 @@ def lint(ctx): for cpp_file in cpp_files: cmd = [ctx.env.CLANG_TIDY[0], - '--header-filter=".*\\.hpp"', + '--header-filter=".*"', "--quiet", "-p=.", cpp_file] procs += [subprocess.Popen(cmd, cwd="build")] |