summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-29 14:21:46 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 14:21:46 -0500
commitc240894406cff4fa62136509d194b0f36cfc9166 (patch)
treefc57b678c7c55a8cb729f01aa739b62391b7471f
parent7be5489bdd166cdbc9fde5ded4c90f724f005ffd (diff)
downloadlilv-c240894406cff4fa62136509d194b0f36cfc9166.tar.gz
lilv-c240894406cff4fa62136509d194b0f36cfc9166.tar.bz2
lilv-c240894406cff4fa62136509d194b0f36cfc9166.zip
Use clang-tidy for linting
-rw-r--r--wscript12
1 files changed, 11 insertions, 1 deletions
diff --git a/wscript b/wscript
index 751f856..b794288 100644
--- a/wscript
+++ b/wscript
@@ -474,7 +474,17 @@ def test(ctx):
pass
def lint(ctx):
- subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include,-runtime/sizeof src/* lilv/*', shell=True)
+ "checks code for style issues"
+ import subprocess
+ cmd = ("clang-tidy -p=. -header-filter=.* -checks=\"*," +
+ "-clang-analyzer-alpha.*," +
+ "-google-readability-todo," +
+ "-llvm-header-guard," +
+ "-llvm-include-order," +
+ "-misc-unused-parameters," +
+ "-readability-else-after-return\" " +
+ "$(find .. -name '*.c')")
+ subprocess.call(cmd, cwd='build', shell=True)
def posts(ctx):
path = str(ctx.path.abspath())