aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-02-24 19:28:11 +0100
committerDavid Robillard <d@drobilla.net>2019-12-20 10:26:55 -0500
commit2bc1126e3e6310464adc8e5aea04f15fb4c72341 (patch)
tree811654a07dab4a5c3ff9ba16c6e431481d2814da /wscript
parent831ebad3855c21d03a96cab1b887958ffca6267a (diff)
downloadserd-2bc1126e3e6310464adc8e5aea04f15fb4c72341.tar.gz
serd-2bc1126e3e6310464adc8e5aea04f15fb4c72341.tar.bz2
serd-2bc1126e3e6310464adc8e5aea04f15fb4c72341.zip
Add clang-tidy file
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 2 insertions, 10 deletions
diff --git a/wscript b/wscript
index c2d602db..112942d9 100644
--- a/wscript
+++ b/wscript
@@ -235,16 +235,8 @@ def build(bld):
def lint(ctx):
"checks code for style issues"
import subprocess
- cmd = ("clang-tidy -p=. -header-filter=.* -checks=\"*," +
- "-bugprone-suspicious-string-compare," +
- "-clang-analyzer-alpha.*," +
- "-google-readability-todo," +
- "-hicpp-signed-bitwise," +
- "-llvm-header-guard," +
- "-misc-unused-parameters," +
- "-readability-else-after-return\" " +
- "../src/*.c")
- subprocess.call(cmd, cwd='build', shell=True)
+ subprocess.call('clang-tidy ../src/*.c ../tests/*.c ../tests/*.cpp',
+ cwd='build', shell=True)
def amalgamate(ctx):
"builds single-file amalgamated source"