aboutsummaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 21:44:53 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 01:59:23 +0200
commit29940c35f257fe00cbf6ddebd5b56314c728958e (patch)
tree935b14c1b4d5667fe3c5115776252662f134f857 /wscript
parentc74467ae07cc419b913998d96315d0f7ef5d2b21 (diff)
Fix various clang-tidy warnings
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files changed, 11 insertions, 3 deletions
diff --git a/wscript b/wscript
index e239f36..582d306 100644
--- a/wscript
+++ b/wscript
@@ -207,13 +207,21 @@ def lint(ctx):
shell=True)
cmd = ("clang-tidy -p=. -header-filter=.* -checks=\"*," +
+ "-bugprone-suspicious-string-compare," +
"-clang-analyzer-alpha.*," +
+ "-cppcoreguidelines-avoid-magic-numbers," +
"-google-readability-todo," +
+ "-hicpp-multiway-paths-covered," +
+ "-hicpp-signed-bitwise," +
+ "-hicpp-uppercase-literal-suffix," +
"-llvm-header-guard," +
+ "-misc-misplaced-const," +
"-misc-unused-parameters," +
- "-hicpp-signed-bitwise," + # FIXME?
- "-readability-else-after-return\" " +
- "../pugl/detail/*.c ../test/*.c")
+ "-readability-else-after-return," +
+ "-readability-magic-numbers," +
+ "-readability-uppercase-literal-suffix\" " +
+ "../pugl/detail/*.c")
+
subprocess.call(cmd, cwd='build', shell=True)
# Alias .m files to be compiled like .c files, gcc will do the right thing.