Skip to content

Commit 2cba066

Browse files
committed
[libc++][CI] Updates to Clang 19.
Since we have released Clang 16 is no longer actively supported. However the FreeBSD runner is still using this, so some tests still guard against Clang 16.
1 parent 6ae4fcf commit 2cba066

File tree

7 files changed

+22
-19
lines changed

7 files changed

+22
-19
lines changed

.github/workflows/libcxx-build-and-test.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ env:
3838
# LLVM POST-BRANCH bump version
3939
# LLVM POST-BRANCH add compiler test for ToT - 1, e.g. "Clang 17"
4040
# LLVM RELEASE bump remove compiler ToT - 3, e.g. "Clang 15"
41-
LLVM_HEAD_VERSION: "18" # Used compiler, update POST-BRANCH.
42-
LLVM_PREVIOUS_VERSION: "17"
43-
LLVM_OLDEST_VERSION: "16"
41+
LLVM_HEAD_VERSION: "19" # Used compiler, update POST-BRANCH.
42+
LLVM_PREVIOUS_VERSION: "18"
43+
LLVM_OLDEST_VERSION: "17"
4444
GCC_STABLE_VERSION: "13"
45-
LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-18"
45+
LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-17"
4646
CLANG_CRASH_DIAGNOSTICS_DIR: "crash_diagnostics"
4747

4848

@@ -59,8 +59,8 @@ jobs:
5959
'generic-cxx26',
6060
'generic-modules'
6161
]
62-
cc: [ 'clang-18' ]
63-
cxx: [ 'clang++-18' ]
62+
cc: [ 'clang-19' ]
63+
cxx: [ 'clang++-19' ]
6464
clang_tidy: [ 'ON' ]
6565
include:
6666
- config: 'generic-gcc'
@@ -100,22 +100,22 @@ jobs:
100100
'generic-cxx20',
101101
'generic-cxx23'
102102
]
103-
cc: [ 'clang-18' ]
104-
cxx: [ 'clang++-18' ]
103+
cc: [ 'clang-19' ]
104+
cxx: [ 'clang++-19' ]
105105
clang_tidy: [ 'ON' ]
106106
include:
107107
- config: 'generic-gcc-cxx11'
108108
cc: 'gcc-13'
109109
cxx: 'g++-13'
110110
clang_tidy: 'OFF'
111-
- config: 'generic-cxx23'
112-
cc: 'clang-16'
113-
cxx: 'clang++-16'
114-
clang_tidy: 'OFF'
115111
- config: 'generic-cxx23'
116112
cc: 'clang-17'
117113
cxx: 'clang++-17'
118114
clang_tidy: 'OFF'
115+
- config: 'generic-cxx26'
116+
cc: 'clang-18'
117+
cxx: 'clang++-18'
118+
clang_tidy: 'ON'
119119
steps:
120120
- uses: actions/checkout@v4
121121
- name: ${{ matrix.config }}
@@ -186,8 +186,8 @@ jobs:
186186
- name: ${{ matrix.config }}
187187
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
188188
env:
189-
CC: clang-18
190-
CXX: clang++-18
189+
CC: clang-19
190+
CXX: clang++-19
191191
ENABLE_CLANG_TIDY: "OFF"
192192
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
193193
if: always()

libcxx/docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ velocity, libc++ drops support for older compilers as newer ones are released.
115115
============ =============== ========================== =====================
116116
Compiler Versions Restrictions Support policy
117117
============ =============== ========================== =====================
118-
Clang 16, 17, 18-git latest two stable releases per `LLVM's release page <https://releases.llvm.org>`_ and the development version
118+
Clang 17, 18, 19-git latest two stable releases per `LLVM's release page <https://releases.llvm.org>`_ and the development version
119119
AppleClang 15 latest stable release per `Xcode's release page <https://developer.apple.com/documentation/xcode-release-notes>`_
120120
Open XL 17.1 (AIX) latest stable release per `Open XL's documentation page <https://www.ibm.com/docs/en/openxl-c-and-cpp-aix>`_
121121
GCC 13 In C++11 or later only latest stable release per `GCC's release page <https://gcc.gnu.org/releases.html>`_

libcxx/include/__expected/bad_expected_access.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
2727
template <class _Err>
2828
class bad_expected_access;
2929

30+
_LIBCPP_DIAGNOSTIC_PUSH
31+
_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wweak-vtables")
3032
template <>
3133
class bad_expected_access<void> : public exception {
3234
protected:
@@ -58,6 +60,7 @@ class bad_expected_access : public bad_expected_access<void> {
5860
private:
5961
_Err __unex_;
6062
};
63+
_LIBCPP_DIAGNOSTIC_POP
6164

6265
_LIBCPP_END_NAMESPACE_STD
6366

libcxx/test/libcxx/atomics/diagnose_invalid_memory_order.verify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// This test fails with Clang <18 because diagnose_if doesn't emit all of the
1010
// diagnostics when -fdelayed-template-parsing is enabled, like it is in MSVC
1111
// mode.
12-
// XFAIL: msvc && (clang-16 || clang-17)
12+
// XFAIL: msvc && clang-17
1313

1414
// REQUIRES: diagnose-if-support
1515

libcxx/test/libcxx/ranges/range.adaptors/range.lazy.split/no_unique_address.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
10-
// XFAIL: msvc && (clang-16 || clang-17)
10+
// XFAIL: msvc && clang-17
1111

1212
// class lazy_split_view {
1313
// _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();

libcxx/test/libcxx/ranges/range.adaptors/range.split/no_unique_address.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// UNSUPPORTED: c++03, c++11, c++14, c++17
10-
// XFAIL: msvc && (clang-16 || clang-17)
10+
// XFAIL: msvc && clang-17
1111

1212
// class split_view {
1313
// _LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();

libcxx/test/libcxx/ranges/range.factories/range.istream.view/no_unique_address.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// UNSUPPORTED: no-localization
1010
// UNSUPPORTED: c++03, c++11, c++14, c++17
11-
// XFAIL: msvc && (clang-16 || clang-17)
11+
// XFAIL: msvc && clang-17
1212

1313
// Test the libc++ extension that the value stored in `std::ranges::istream_view` has been marked
1414
// as _LIBCPP_NO_UNIQUE_ADDRESS

0 commit comments

Comments
 (0)