Skip to content

Commit 0546b76

Browse files
committed
Update version via script
1 parent 1c6dc8d commit 0546b76

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

libcxx/docs/FeatureTestMacroTable.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Status
8888
---------------------------------------------------------- -----------------
8989
``__cpp_lib_byte`` ``201603L``
9090
---------------------------------------------------------- -----------------
91-
``__cpp_lib_chrono`` ``202510L``
91+
``__cpp_lib_chrono`` ``201611L``
9292
---------------------------------------------------------- -----------------
9393
``__cpp_lib_clamp`` ``201603L``
9494
---------------------------------------------------------- -----------------
@@ -424,6 +424,8 @@ Status
424424
---------------------------------------------------------- -----------------
425425
``__cpp_lib_bitset`` ``202306L``
426426
---------------------------------------------------------- -----------------
427+
``__cpp_lib_chrono`` ``202306L``
428+
---------------------------------------------------------- -----------------
427429
``__cpp_lib_constexpr_algorithms`` ``202306L``
428430
---------------------------------------------------------- -----------------
429431
``__cpp_lib_constexpr_forward_list`` ``202502L``

libcxx/include/version

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ __cpp_lib_byteswap 202110L <bit>
5757
__cpp_lib_char8_t 201907L <atomic> <filesystem> <istream>
5858
<limits> <locale> <ostream>
5959
<string> <string_view>
60-
__cpp_lib_chrono 202510L <chrono>
60+
__cpp_lib_chrono 202306L <chrono>
61+
201611L // C++17
6162
__cpp_lib_chrono_udls 201304L <chrono>
6263
__cpp_lib_clamp 201603L <algorithm>
6364
__cpp_lib_common_reference 202302L <type_traits>
@@ -332,7 +333,7 @@ __cpp_lib_void_t 201411L <type_traits>
332333
# define __cpp_lib_bool_constant 201505L
333334
# define __cpp_lib_boyer_moore_searcher 201603L
334335
# define __cpp_lib_byte 201603L
335-
# define __cpp_lib_chrono 202510L
336+
# define __cpp_lib_chrono 201611L
336337
# define __cpp_lib_clamp 201603L
337338
# define __cpp_lib_enable_shared_from_this 201603L
338339
// # define __cpp_lib_execution 201603L
@@ -550,6 +551,8 @@ __cpp_lib_void_t 201411L <type_traits>
550551
# undef __cpp_lib_bind_front
551552
# define __cpp_lib_bind_front 202306L
552553
# define __cpp_lib_bitset 202306L
554+
# undef __cpp_lib_chrono
555+
# define __cpp_lib_chrono 202306L
553556
# undef __cpp_lib_constexpr_algorithms
554557
# define __cpp_lib_constexpr_algorithms 202306L
555558
# define __cpp_lib_constexpr_forward_list 202502L

libcxx/test/std/language.support/support.limits/support.limits.general/chrono.version.compile.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
# ifndef __cpp_lib_chrono
9595
# error "__cpp_lib_chrono should be defined in c++26"
9696
# endif
97-
# if __cpp_lib_chrono != 201611L
98-
# error "__cpp_lib_chrono should have the value 201611L in c++26"
97+
# if __cpp_lib_chrono != 202306L
98+
# error "__cpp_lib_chrono should have the value 202306L in c++26"
9999
# endif
100100

101101
# ifndef __cpp_lib_chrono_udls

libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6455,8 +6455,8 @@
64556455
# ifndef __cpp_lib_chrono
64566456
# error "__cpp_lib_chrono should be defined in c++26"
64576457
# endif
6458-
# if __cpp_lib_chrono != 201611L
6459-
# error "__cpp_lib_chrono should have the value 201611L in c++26"
6458+
# if __cpp_lib_chrono != 202306L
6459+
# error "__cpp_lib_chrono should have the value 202306L in c++26"
64606460
# endif
64616461

64626462
# ifndef __cpp_lib_chrono_udls

libcxx/utils/generate_feature_test_macro_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def add_version_header(tc):
300300
"name": "__cpp_lib_chrono",
301301
"values": {
302302
"c++17": 201611,
303-
# "c++26": 202306, # P2592R3 Hashing support for std::chrono value classes
303+
"c++26": 202306, # P2592R3 Hashing support for std::chrono value classes
304304
},
305305
"headers": ["chrono"],
306306
},

0 commit comments

Comments
 (0)