Skip to content

Commit da01982

Browse files
Merge pull request #41046 from azat/build/llvm-15
Switch to llvm/clang 15
2 parents c3ff66b + c1e7016 commit da01982

29 files changed

Lines changed: 111 additions & 75 deletions

File tree

.clang-tidy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Checks: '*,
2222
-bugprone-implicit-widening-of-multiplication-result,
2323
-bugprone-narrowing-conversions,
2424
-bugprone-not-null-terminated-result,
25+
-bugprone-unchecked-optional-access,
26+
-bugprone-assignment-in-if-condition,
2527
2628
-cert-dcl16-c,
2729
-cert-err58-cpp,
@@ -103,6 +105,7 @@ Checks: '*,
103105
104106
-misc-no-recursion,
105107
-misc-non-private-member-variables-in-classes,
108+
-misc-const-correctness,
106109
107110
-modernize-avoid-c-arrays,
108111
-modernize-concat-nested-namespaces,
@@ -114,6 +117,7 @@ Checks: '*,
114117
-modernize-use-nodiscard,
115118
-modernize-use-override,
116119
-modernize-use-trailing-return-type,
120+
-modernize-macro-to-enum,
117121
118122
-performance-inefficient-string-concatenation,
119123
-performance-no-int-to-ptr,
@@ -135,6 +139,7 @@ Checks: '*,
135139
-readability-suspicious-call-argument,
136140
-readability-uppercase-literal-suffix,
137141
-readability-use-anyofallof,
142+
-readability-simplify-boolean-expr,
138143
139144
-zirkon-*,
140145
'

cmake/clang_tidy.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ option (ENABLE_CLANG_TIDY "Use clang-tidy static analyzer" OFF)
33

44
if (ENABLE_CLANG_TIDY)
55

6-
find_program (CLANG_TIDY_PATH NAMES "clang-tidy" "clang-tidy-14" "clang-tidy-13" "clang-tidy-12")
6+
find_program (CLANG_TIDY_PATH NAMES "clang-tidy" "clang-tidy-15" "clang-tidy-14" "clang-tidy-13" "clang-tidy-12")
77

88
if (CLANG_TIDY_PATH)
99
message(STATUS

cmake/target.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ if (CMAKE_CROSSCOMPILING)
4545
endif ()
4646

4747
if (USE_MUSL)
48+
# use of undeclared identifier 'PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP'
4849
set (ENABLE_SENTRY OFF CACHE INTERNAL "")
4950
set (ENABLE_ODBC OFF CACHE INTERNAL "")
5051
set (ENABLE_GRPC OFF CACHE INTERNAL "")

contrib/jemalloc-cmake/include_linux_x86_64_musl/jemalloc/internal/jemalloc_internal_defs.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
/*
416416
* Defined if strerror_r returns char * if _GNU_SOURCE is defined.
417417
*/
418-
#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE
418+
/* #undef JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE */
419419

420420
/* Performs additional safety checks when defined. */
421421
/* #undef JEMALLOC_OPT_SAFETY_CHECKS */

contrib/krb5-cmake/autoconf_linux.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@
440440
#define HAVE_STRERROR 1
441441

442442
/* Define to 1 if you have the `strerror_r' function. */
443+
#ifndef USE_MUSL
443444
#define HAVE_STRERROR_R 1
445+
#endif
444446

445447
/* Define to 1 if you have the <strings.h> header file. */
446448
#define HAVE_STRINGS_H 1

contrib/libcpuid

contrib/libpq-cmake/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ target_include_directories (_libpq SYSTEM PUBLIC ${LIBPQ_SOURCE_DIR})
6363
target_include_directories (_libpq SYSTEM PUBLIC "${LIBPQ_SOURCE_DIR}/include")
6464
target_include_directories (_libpq SYSTEM PRIVATE "${LIBPQ_SOURCE_DIR}/configs")
6565

66+
# NOTE: this is a dirty hack to avoid and instead pg_config.h should be shipped
67+
# for different OS'es like for jemalloc, not one generic for all OS'es like
68+
# now.
69+
if (OS_DARWIN OR OS_FREEBSD OR USE_MUSL)
70+
target_compile_definitions(_libpq PRIVATE -DSTRERROR_R_INT=1)
71+
endif()
72+
6673
target_link_libraries (_libpq PRIVATE OpenSSL::SSL)
6774

6875
add_library(ch_contrib::libpq ALIAS _libpq)

contrib/librdkafka

Submodule librdkafka updated 1 file

contrib/llvm

0 commit comments

Comments
 (0)