From 2bc1126e3e6310464adc8e5aea04f15fb4c72341 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Feb 2019 19:28:11 +0100 Subject: Add clang-tidy file --- wscript | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'wscript') 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" -- cgit v1.2.1