mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
[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
This commit is contained in:
@@ -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=$?
|
||||
|
Reference in New Issue
Block a user