From 9541da12143d3bfdbeceafe5558fb39b2655b8ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Dec 2017 14:38:27 -0500 Subject: Use clang-tidy for linting --- wscript | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 1c32c79..ad9a9f1 100644 --- a/wscript +++ b/wscript @@ -152,7 +152,17 @@ def test(ctx): autowaf.post_test(ctx, APPNAME) 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 src/* sratom/*', 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 fix_docs(ctx): if ctx.cmd == 'build': -- cgit v1.2.1