From f0f058dbeb40d016501328ed755392b46eefec9b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 1 Nov 2020 13:32:11 +0100 Subject: Run clang-tidy on all headers and fix various issues It's a nightmare trying to get this thing to check everything. --- wscript | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index d95f0a1..bd4d19a 100644 --- a/wscript +++ b/wscript @@ -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")] -- cgit v1.2.1