Browse Source

Check headers with stricter clang-tidy settings

zrythm_meson
David Robillard 2 years ago
parent
commit
0f2ec1ed73
  1. 7
      include/.clang-tidy
  2. 4
      wscript

7
include/.clang-tidy

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
Checks: >
*,
-clang-diagnostic-unused-macros,
-hicpp-signed-bitwise,
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: file

4
wscript

@ -284,7 +284,9 @@ def lint(ctx): @@ -284,7 +284,9 @@ def lint(ctx):
if "CLANG_TIDY" in ctx.env and "clang" in ctx.env.CC[0]:
Logs.info("Running clang-tidy")
sources = glob.glob('src/*.c') + glob.glob('test/*.c')
sources = glob.glob('include/serd/*.h*')
sources += glob.glob('src/*.c')
sources += glob.glob('test/*.c')
sources = list(map(os.path.abspath, sources))
procs = []
for source in sources:

Loading…
Cancel
Save