aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikhnenko <mikhnenko@yandex-team.com>2025-07-30 00:42:18 +0300
committermikhnenko <mikhnenko@yandex-team.com>2025-07-30 01:37:39 +0300
commit94ab428afaf835a102a527535e6428f55180e070 (patch)
treeb252811260d986ee0e0c1ef243e404c8b9aea5b7
parent431a5bd17a0a5eb99915f6222631a1c91e96568a (diff)
downloadydb-94ab428afaf835a102a527535e6428f55180e070.tar.gz
Create CI platform for clang20
commit_hash:94ff8f2e03b29272cf1563f2104cef360e2f9adb
-rw-r--r--build/conf/compilers/gnu_compiler.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf
index dd6c2351b6a..dc2ba68a520 100644
--- a/build/conf/compilers/gnu_compiler.conf
+++ b/build/conf/compilers/gnu_compiler.conf
@@ -80,6 +80,48 @@ when ($CLANG18 == "yes") {
}
}
+when ($CLANG20 == "yes") {
+ CFLAGS+=-Wno-array-parameter -Wno-deprecate-lax-vec-conv-all -Wno-unqualified-std-cast-call -Wno-unused-but-set-parameter -Wno-implicit-function-declaration -Wno-int-conversion -Wno-incompatible-function-pointer-types -Wno-address-of-packed-member
+ CFLAGS+=-Wno-deprecated-this-capture -Wno-missing-designated-field-initializers \
+ -Wno-format -Wno-vla-cxx-extension -Wno-invalid-offsetof \
+ # warnings improved in clang20
+ CFLAGS+=-Wno-ignored-qualifiers \
+ -Wno-implicit-int \
+ -Wno-array-bounds \
+ -Wno-deprecated-literal-operator \
+ -Wno-unused-parameter \
+ -Wno-dangling-gsl \
+ -Wno-macro-redefined \
+ -Wno-extra-qualification \
+ -Wno-return-stack-address \
+ -Wno-shorten-64-to-32 \
+ -Wno-nontrivial-memcall \
+ -Wno-tautological-constant-out-of-range-compare \
+ -Wno-unused-but-set-variable \
+ -Wno-explicit-specialization-storage-class \
+ -Wno-deprecated-declarations \
+ -Wno-dangling-assignment \
+ -Wno-cast-function-type-mismatch \
+ -Wno-delete-incomplete \
+ -Wno-unused-private-field \
+ -Wno-unused-value \
+ -Wno-sign-compare \
+ -Wno-braced-scalar-init \
+ -Wno-main \
+ -Wno-pointer-bool-conversion
+
+ # new warnings for clang20
+ CFLAGS+=-Wno-missing-template-arg-list-after-template-kw \
+ -Wno-strict-primary-template-shadow \
+ -Wno-extraneous-template-head \
+ -Wno-dangling-assignment-gsl \
+ -Wno-alias-template-in-declaration-name
+
+ when ($MAPSMOBI_BUILD_TARGET == "yes") {
+ CFLAGS+=-Wno-deprecated-declarations
+ }
+}
+
when ($MSAN_TRACK_ORIGIN == "yes") {
CFLAGS+=-fsanitize-memory-track-origins=2
}