mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00: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:
parent
392e80e3f1
commit
077f231111
3 changed files with 8 additions and 9 deletions
|
@ -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=$?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue