aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-09 12:23:57 +0100
committerDavid Robillard <d@drobilla.net>2020-11-09 20:03:10 +0100
commit0f2ec1ed73e68602c92db917fbb131ab61160239 (patch)
treed9714c30ca0bd202ad0eb2c4911ac30c70283121
parent59307f4af468144a0ad76e3c5d68927b2ba90d91 (diff)
downloadserd-0f2ec1ed73e68602c92db917fbb131ab61160239.tar.gz
serd-0f2ec1ed73e68602c92db917fbb131ab61160239.tar.bz2
serd-0f2ec1ed73e68602c92db917fbb131ab61160239.zip
Check headers with stricter clang-tidy settings
-rw-r--r--include/.clang-tidy7
-rw-r--r--wscript4
2 files changed, 10 insertions, 1 deletions
diff --git a/include/.clang-tidy b/include/.clang-tidy
new file mode 100644
index 00000000..f8a0d67b
--- /dev/null
+++ b/include/.clang-tidy
@@ -0,0 +1,7 @@
+Checks: >
+ *,
+ -clang-diagnostic-unused-macros,
+ -hicpp-signed-bitwise,
+WarningsAsErrors: '*'
+HeaderFilterRegex: '.*'
+FormatStyle: file
diff --git a/wscript b/wscript
index 4c3b0e48..05b313c7 100644
--- a/wscript
+++ b/wscript
@@ -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: