diff options
author | David Robillard <d@drobilla.net> | 2017-12-29 14:38:27 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 14:38:40 -0500 |
commit | 9541da12143d3bfdbeceafe5558fb39b2655b8ac (patch) | |
tree | 6750e9ebf321346344a13d5beaa04b61446ce43b | |
parent | 38f072895d751ffb03bf8401b24e6df8d8df154f (diff) | |
download | sratom-9541da12143d3bfdbeceafe5558fb39b2655b8ac.tar.gz sratom-9541da12143d3bfdbeceafe5558fb39b2655b8ac.tar.bz2 sratom-9541da12143d3bfdbeceafe5558fb39b2655b8ac.zip |
Use clang-tidy for linting
-rw-r--r-- | wscript | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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': |