summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-03 18:58:24 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-03 18:58:24 +0300
commitec615b27d8630c37f9ef948527170483ebe0fbe0 (patch)
tree480e6989aa63d809066e92f43510d5e6f402a00e
parent2f1687f3255064738d8b1b185ab7b2cedb79e313 (diff)
downloadmv-ec615b27d8630c37f9ef948527170483ebe0fbe0.tar.gz
mv-ec615b27d8630c37f9ef948527170483ebe0fbe0.tar.bz2
mv-ec615b27d8630c37f9ef948527170483ebe0fbe0.tar.xz
mv-ec615b27d8630c37f9ef948527170483ebe0fbe0.zip
Fix different issues in updated CI environments.
Ignore some clang and clang tidy warnings.
-rw-r--r--.clang-tidy2
-rw-r--r--tools/ci/branches/ci_clang3x/.gitlab-ci.yml4
-rw-r--r--tools/ci/branches/ci_clang4_5/.gitlab-ci.yml1
-rw-r--r--tools/ci/branches/ci_clang6/.gitlab-ci.yml16
-rwxr-xr-xtools/ci/jobs/clang39.sh1
-rwxr-xr-xtools/ci/jobs/clang39.sh_c++11.sh1
-rwxr-xr-xtools/ci/jobs/clang39_sdl2.sh1
-rwxr-xr-xtools/ci/jobs/clang40.sh1
-rwxr-xr-xtools/ci/jobs/clang60.sh1
-rwxr-xr-xtools/ci/jobs/clang60_tests.sh1
10 files changed, 18 insertions, 11 deletions
diff --git a/.clang-tidy b/.clang-tidy
index ac1bdb6c2..5da179780 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,5 +1,5 @@
---
-Checks: 'clang-diagnostic-*,clang-analyzer-*,*,-llvm-header-guard,-cppcoreguidelines-special-member-functions,-readability-avoid-const-params-in-decls,-modernize-use-equals-default,-hicpp-use-override,-hicpp-special-member-functions,-readability-redundant-member-init,-hicpp-use-equals-default,-modernize-use-using,-modernize-use-override,-cert-err58-cpp,-modernize-use-default-member-init,-google-runtime-references,-modernize-pass-by-value,-misc-misplaced-const,-cppcoreguidelines-pro-type-const-cast,-readability-else-after-return,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-modernize-loop-convert,-modernize-use-auto,-readability-simplify-boolean-expr,-readability-inconsistent-declaration-parameter-name,-cert-msc30-c,-cert-msc50-cpp,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-union-access,-llvm-include-order,-google-runtime-int,-cppcoreguidelines-pro-type-member-init,-modernize-use-emplace,-hicpp-member-init,-cert-err34-c,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-no-malloc,-cert-dcl50-cpp,-clang-analyzer-core.CallAndMessage,-misc-macro-parentheses,-cppcoreguidelines-interfaces-global-init,-readability-redundant-string-cstr,-google-default-arguments,-cert-err52-cpp,-cert-env33-c,-clang-analyzer-cplusplus.NewDeleteLeaks,-clang-analyzer-cplusplus.NewDelete,-modernize-raw-string-literal,-clang-analyzer-core.DivideZero,-misc-misplaced-widening-cast,-modernize-return-braced-init-list,-clang-analyzer-core.NullDereference,-google-readability-function-size,-readability-function-size,-clang-analyzer-security.insecureAPI.strcpy,-CWE-119,-performance-type-promotion-in-math-fn,-google-readability-todo,-clang-analyzer-deadcode.DeadStores,-hicpp-function-size,-misc-definitions-in-headers,-misc-incorrect-roundings,-google-runtime-member-string-references,-google-explicit-constructor,-readability-misleading-indentation,-cert-dcl58-cpp,-hicpp-use-equals-delete,-misc-string-literal-with-embedded-nul,-hicpp-explicit-conversions,-modernize-use-equals-delete,-google-readability-braces-around-statements,-readability-braces-around-statements,-readability-redundant-declaration'
+Checks: 'clang-diagnostic-*,clang-analyzer-*,*,-llvm-header-guard,-cppcoreguidelines-special-member-functions,-readability-avoid-const-params-in-decls,-modernize-use-equals-default,-hicpp-use-override,-hicpp-special-member-functions,-readability-redundant-member-init,-hicpp-use-equals-default,-modernize-use-using,-modernize-use-override,-cert-err58-cpp,-modernize-use-default-member-init,-google-runtime-references,-modernize-pass-by-value,-misc-misplaced-const,-cppcoreguidelines-pro-type-const-cast,-readability-else-after-return,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-modernize-loop-convert,-modernize-use-auto,-readability-simplify-boolean-expr,-readability-inconsistent-declaration-parameter-name,-cert-msc30-c,-cert-msc50-cpp,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-union-access,-llvm-include-order,-google-runtime-int,-cppcoreguidelines-pro-type-member-init,-modernize-use-emplace,-hicpp-member-init,-cert-err34-c,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-no-malloc,-cert-dcl50-cpp,-clang-analyzer-core.CallAndMessage,-misc-macro-parentheses,-cppcoreguidelines-interfaces-global-init,-readability-redundant-string-cstr,-google-default-arguments,-cert-err52-cpp,-cert-env33-c,-clang-analyzer-cplusplus.NewDeleteLeaks,-clang-analyzer-cplusplus.NewDelete,-modernize-raw-string-literal,-clang-analyzer-core.DivideZero,-misc-misplaced-widening-cast,-modernize-return-braced-init-list,-clang-analyzer-core.NullDereference,-google-readability-function-size,-readability-function-size,-clang-analyzer-security.insecureAPI.strcpy,-CWE-119,-performance-type-promotion-in-math-fn,-google-readability-todo,-clang-analyzer-deadcode.DeadStores,-hicpp-function-size,-misc-definitions-in-headers,-misc-incorrect-roundings,-google-runtime-member-string-references,-google-explicit-constructor,-readability-misleading-indentation,-cert-dcl58-cpp,-hicpp-use-equals-delete,-misc-string-literal-with-embedded-nul,-hicpp-explicit-conversions,-modernize-use-equals-delete,-google-readability-braces-around-statements,-readability-braces-around-statements,-readability-redundant-declaration,-fuchsia-statically-constructed-objects,-bugprone-macro-parentheses,-bugprone-narrowing-conversions,-abseil-string-find-startswith,-clang-analyzer-core.StackAddressEscape,-abseil-string-find-startswith,-hicpp-multiway-paths-covered,-fuchsia-multiple-inheritance'
HeaderFilterRegex: '*'
AnalyzeTemporaryDtors: false
CheckOptions:
diff --git a/tools/ci/branches/ci_clang3x/.gitlab-ci.yml b/tools/ci/branches/ci_clang3x/.gitlab-ci.yml
index 85451693e..3c7b805bd 100644
--- a/tools/ci/branches/ci_clang3x/.gitlab-ci.yml
+++ b/tools/ci/branches/ci_clang3x/.gitlab-ci.yml
@@ -21,7 +21,7 @@ clang-3.9:
- ./tools/ci/scripts/runtests.sh
<<: *job-push
variables:
- PACKAGES: clang-3.9 libc++-dev libc++abi-dev
+ PACKAGES: gcc g++ clang-3.9 libc++-dev libc++abi-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
@@ -283,7 +283,7 @@ clang-3.9_sdl2:
- ./tools/ci/scripts/runtests.sh
<<: *job-push
variables:
- PACKAGES: clang-3.9 libc++-dev libc++abi-dev
+ PACKAGES: gcc g++ clang-3.9 libc++-dev libc++abi-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
diff --git a/tools/ci/branches/ci_clang4_5/.gitlab-ci.yml b/tools/ci/branches/ci_clang4_5/.gitlab-ci.yml
index 7c2a757c1..75bf01828 100644
--- a/tools/ci/branches/ci_clang4_5/.gitlab-ci.yml
+++ b/tools/ci/branches/ci_clang4_5/.gitlab-ci.yml
@@ -37,6 +37,7 @@ clang-5.0:
- ./tools/ci/jobs/clang50.sh
- ./tools/ci/scripts/runtests.sh
<<: *job-push
+ image:stretch-backports
variables:
PACKAGES: clang-5.0 libc++-dev libc++abi-dev libclang-5.0-dev
make autoconf automake autopoint gettext
diff --git a/tools/ci/branches/ci_clang6/.gitlab-ci.yml b/tools/ci/branches/ci_clang6/.gitlab-ci.yml
index cccdbe23c..fbbfa8bee 100644
--- a/tools/ci/branches/ci_clang6/.gitlab-ci.yml
+++ b/tools/ci/branches/ci_clang6/.gitlab-ci.yml
@@ -20,7 +20,7 @@ clang-6.0_tests:
- ./tools/ci/jobs/clang60_tests.sh --without-dyecmd --without-manaplusgame
<<: *job-push
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
@@ -35,7 +35,7 @@ clang-6.0_tests_i386:
<<: *job-push
image: vicamo/debian:sid-i386
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
@@ -49,7 +49,7 @@ clang-6.0_tests_sdl2:
- ./tools/ci/jobs/clang60_tests.sh --with-sdl2 --without-dyecmd --without-manaplusgame
<<: *job-push
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
@@ -64,7 +64,7 @@ clang-6.0_tests_sdl2_i386:
<<: *job-push
image: vicamo/debian:sid-i386
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
@@ -79,7 +79,7 @@ clang-6.0:
- ./tools/ci/scripts/runtests.sh
<<: *job-push
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
@@ -95,7 +95,7 @@ clang-6.0_i386:
<<: *job-push
image: vicamo/debian:sid-i386
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
@@ -110,7 +110,7 @@ clang-6.0_sdl2:
- ./tools/ci/scripts/runtests.sh
<<: *job-push
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
@@ -126,7 +126,7 @@ clang-6.0_sdl2_i386:
<<: *job-push
image: vicamo/debian:sid-i386
variables:
- PACKAGES: clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
+ PACKAGES: gcc g++ clang-6.0 libc++-dev libc++abi-dev libclang-6.0-dev
make autoconf automake autopoint gettext
libxml2-dev libcurl4-gnutls-dev libpng-dev
libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
diff --git a/tools/ci/jobs/clang39.sh b/tools/ci/jobs/clang39.sh
index 641f03afa..116436515 100755
--- a/tools/ci/jobs/clang39.sh
+++ b/tools/ci/jobs/clang39.sh
@@ -21,6 +21,7 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
+-Wno-c++98-compat -Wno-implicit-fallthrough \
-Wpointer-bool-conversion -fno-omit-frame-pointer -ggdb3 $POST_CXXFLAGS"
do_init
diff --git a/tools/ci/jobs/clang39.sh_c++11.sh b/tools/ci/jobs/clang39.sh_c++11.sh
index 88d89f732..25a28a48c 100755
--- a/tools/ci/jobs/clang39.sh_c++11.sh
+++ b/tools/ci/jobs/clang39.sh_c++11.sh
@@ -22,6 +22,7 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
-Wpointer-bool-conversion \
+-Wno-c++98-compat -Wno-implicit-fallthrough \
-O3 -std=c++11 -Wno-c++98-compat-pedantic -fno-omit-frame-pointer -ggdb3 $POST_CXXFLAGS"
do_init
diff --git a/tools/ci/jobs/clang39_sdl2.sh b/tools/ci/jobs/clang39_sdl2.sh
index 64e37c73e..a5180690a 100755
--- a/tools/ci/jobs/clang39_sdl2.sh
+++ b/tools/ci/jobs/clang39_sdl2.sh
@@ -21,6 +21,7 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
+-Wno-c++98-compat -Wno-implicit-fallthrough \
-Wpointer-bool-conversion -fno-omit-frame-pointer -ggdb3 $POST_CXXFLAGS"
do_init
diff --git a/tools/ci/jobs/clang40.sh b/tools/ci/jobs/clang40.sh
index 76c558c45..907925361 100755
--- a/tools/ci/jobs/clang40.sh
+++ b/tools/ci/jobs/clang40.sh
@@ -21,6 +21,7 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign
-Wno-disabled-macro-expansion -Wno-format-nonliteral -stdlib=libc++ \
-Wno-reserved-id-macro -Wno-packed -Wno-documentation-unknown-command \
-Wno-variadic-macros -Wno-double-promotion -Wno-attributes \
+-Wno-c++98-compat-pedantic \
-Wpointer-bool-conversion -fno-omit-frame-pointer -ggdb3 $POST_CXXFLAGS"
do_init
diff --git a/tools/ci/jobs/clang60.sh b/tools/ci/jobs/clang60.sh
index d6aaf79c1..af25ea546 100755
--- a/tools/ci/jobs/clang60.sh
+++ b/tools/ci/jobs/clang60.sh
@@ -26,6 +26,7 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign
-Wno-variadic-macros -Wno-double-promotion -Wno-attributes -Wno-shadow-field \
-Wpointer-bool-conversion -fno-omit-frame-pointer -Wno-c++98-compat-pedantic \
-Wno-implicit-fallthrough -Wno-zero-as-null-pointer-constant \
+-Wno-c++98-compat-pedantic \
-ggdb3 -stdlib=libc++ $POST_CXXFLAGS"
do_init
diff --git a/tools/ci/jobs/clang60_tests.sh b/tools/ci/jobs/clang60_tests.sh
index cc0e46968..20e59c427 100755
--- a/tools/ci/jobs/clang60_tests.sh
+++ b/tools/ci/jobs/clang60_tests.sh
@@ -26,6 +26,7 @@ export CXXFLAGS="$CXXFLAGS -Weverything -Wno-documentation -Wno-padded -Wno-sign
-Wno-variadic-macros -Wno-double-promotion -Wno-attributes -Wno-shadow-field \
-Wpointer-bool-conversion -fno-omit-frame-pointer \
-Wno-zero-as-null-pointer-constant \
+-Wno-c++98-compat-pedantic \
-ggdb3 -stdlib=libc++ $POST_CXXFLAGS"
do_init