summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-04-04 20:49:42 +0200
committerGitHub <noreply@github.com>2018-04-04 20:49:42 +0200
commit077f231111082272359a916c3e41049aaf699151 (patch)
treea4401f7b9571a8fbee9ecce185c31d18ff24a8a5 /util
parent392e80e3f13c977b5499eb424fa7d65085fb08f5 (diff)
downloadminetest-077f231111082272359a916c3e41049aaf699151.tar.gz
minetest-077f231111082272359a916c3e41049aaf699151.tar.bz2
minetest-077f231111082272359a916c3e41049aaf699151.zip
[clang-tidy] Promote some performance-* as a coding error (#7194)
* Promote performance-type-promotion-in-math-fn as a coding error * Promote performance-faster-string-find too (which is not problematic currently) * Same for performance-implicit-cast-in-loop * Fix remaining tidy points
Diffstat (limited to 'util')
-rwxr-xr-xutil/travis/clangtidy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/travis/clangtidy.sh b/util/travis/clangtidy.sh
index 2d44afe32..6f76765a1 100755
--- a/util/travis/clangtidy.sh
+++ b/util/travis/clangtidy.sh
@@ -19,7 +19,7 @@ cd ..
echo "Performing clang-tidy checks..."
./util/travis/run-clang-tidy.py -clang-tidy-binary=${CLANG_TIDY} -p cmakebuild \
-checks='-*,modernize-use-emplace,modernize-avoid-bind,performance-*' \
- -warningsaserrors='-*,modernize-use-emplace' \
+ -warningsaserrors='-*,modernize-use-emplace,performance-type-promotion-in-math-fn,performance-faster-string-find,performance-implicit-cast-in-loop' \
-no-command-on-stdout -quiet \
files 'src/.*'
RET=$?