Skip to content

Commit e36bc1c

Browse files
committed
Run the generate scripts
1 parent 2766103 commit e36bc1c

File tree

6 files changed

+128
-2
lines changed

6 files changed

+128
-2
lines changed

libcxx/docs/FeatureTestMacroTable.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ Status
404404
---------------------------------------------------------- -----------------
405405
**C++26**
406406
----------------------------------------------------------------------------
407-
``__cpp_lib_associative_heterogeneous_insertion`` *unimplemented*
408-
---------------------------------------------------------- -----------------
409407
``__cpp_lib_aligned_accessor`` ``202411L``
410408
---------------------------------------------------------- -----------------
409+
``__cpp_lib_associative_heterogeneous_insertion`` *unimplemented*
410+
---------------------------------------------------------- -----------------
411411
``__cpp_lib_atomic_min_max`` *unimplemented*
412412
---------------------------------------------------------- -----------------
413413
``__cpp_lib_bind_front`` ``202306L``

libcxx/include/version

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Macro name Value Headers
1717
__cpp_lib_adaptor_iterator_pair_constructor 202106L <queue> <stack>
1818
__cpp_lib_addressof_constexpr 201603L <memory>
19+
__cpp_lib_aligned_accessor 202411L <mdspan>
1920
__cpp_lib_allocate_at_least 202302L <memory>
2021
__cpp_lib_allocator_traits_is_always_equal 201411L <deque> <forward_list> <list>
2122
<map> <memory> <scoped_allocator>
@@ -145,6 +146,7 @@ __cpp_lib_is_nothrow_convertible 201806L <type_traits>
145146
__cpp_lib_is_null_pointer 201309L <type_traits>
146147
__cpp_lib_is_pointer_interconvertible 201907L <type_traits>
147148
__cpp_lib_is_scoped_enum 202011L <type_traits>
149+
__cpp_lib_is_sufficiently_aligned 202411L <memory>
148150
__cpp_lib_is_swappable 201603L <type_traits>
149151
__cpp_lib_is_virtual_base_of 202406L <type_traits>
150152
__cpp_lib_is_within_lifetime 202306L <type_traits>
@@ -523,6 +525,7 @@ __cpp_lib_void_t 201411L <type_traits>
523525
#endif
524526

525527
#if _LIBCPP_STD_VER >= 26
528+
# define __cpp_lib_aligned_accessor 202411L
526529
// # define __cpp_lib_associative_heterogeneous_insertion 202306L
527530
// # define __cpp_lib_atomic_min_max 202403L
528531
# undef __cpp_lib_bind_front
@@ -551,6 +554,7 @@ __cpp_lib_void_t 201411L <type_traits>
551554
// # define __cpp_lib_generate_random 202403L
552555
// # define __cpp_lib_hazard_pointer 202306L
553556
// # define __cpp_lib_inplace_vector 202406L
557+
# define __cpp_lib_is_sufficiently_aligned 202411L
554558
# if __has_builtin(__builtin_is_virtual_base_of)
555559
# define __cpp_lib_is_virtual_base_of 202406L
556560
# endif

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// Test the feature test macros defined by <mdspan>
1717

1818
/* Constant Value
19+
__cpp_lib_aligned_accessor 202411L [C++26]
1920
__cpp_lib_freestanding_mdspan 202311L [C++26]
2021
__cpp_lib_mdspan 202207L [C++23]
2122
202406L [C++26]
@@ -27,6 +28,10 @@
2728

2829
#if TEST_STD_VER < 14
2930

31+
# ifdef __cpp_lib_aligned_accessor
32+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
33+
# endif
34+
3035
# ifdef __cpp_lib_freestanding_mdspan
3136
# error "__cpp_lib_freestanding_mdspan should not be defined before c++26"
3237
# endif
@@ -41,6 +46,10 @@
4146

4247
#elif TEST_STD_VER == 14
4348

49+
# ifdef __cpp_lib_aligned_accessor
50+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
51+
# endif
52+
4453
# ifdef __cpp_lib_freestanding_mdspan
4554
# error "__cpp_lib_freestanding_mdspan should not be defined before c++26"
4655
# endif
@@ -55,6 +64,10 @@
5564

5665
#elif TEST_STD_VER == 17
5766

67+
# ifdef __cpp_lib_aligned_accessor
68+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
69+
# endif
70+
5871
# ifdef __cpp_lib_freestanding_mdspan
5972
# error "__cpp_lib_freestanding_mdspan should not be defined before c++26"
6073
# endif
@@ -69,6 +82,10 @@
6982

7083
#elif TEST_STD_VER == 20
7184

85+
# ifdef __cpp_lib_aligned_accessor
86+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
87+
# endif
88+
7289
# ifdef __cpp_lib_freestanding_mdspan
7390
# error "__cpp_lib_freestanding_mdspan should not be defined before c++26"
7491
# endif
@@ -83,6 +100,10 @@
83100

84101
#elif TEST_STD_VER == 23
85102

103+
# ifdef __cpp_lib_aligned_accessor
104+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
105+
# endif
106+
86107
# ifdef __cpp_lib_freestanding_mdspan
87108
# error "__cpp_lib_freestanding_mdspan should not be defined before c++26"
88109
# endif
@@ -100,6 +121,13 @@
100121

101122
#elif TEST_STD_VER > 23
102123

124+
# ifndef __cpp_lib_aligned_accessor
125+
# error "__cpp_lib_aligned_accessor should be defined in c++26"
126+
# endif
127+
# if __cpp_lib_aligned_accessor != 202411L
128+
# error "__cpp_lib_aligned_accessor should have the value 202411L in c++26"
129+
# endif
130+
103131
# if !defined(_LIBCPP_VERSION)
104132
# ifndef __cpp_lib_freestanding_mdspan
105133
# error "__cpp_lib_freestanding_mdspan should be defined in c++26"

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
__cpp_lib_constexpr_memory 201811L [C++20]
2626
202202L [C++23]
2727
__cpp_lib_enable_shared_from_this 201603L [C++17]
28+
__cpp_lib_is_sufficiently_aligned 202411L [C++26]
2829
__cpp_lib_make_unique 201304L [C++14]
2930
__cpp_lib_out_ptr 202106L [C++23]
3031
202311L [C++26]
@@ -78,6 +79,10 @@
7879
# error "__cpp_lib_enable_shared_from_this should not be defined before c++17"
7980
# endif
8081

82+
# ifdef __cpp_lib_is_sufficiently_aligned
83+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
84+
# endif
85+
8186
# ifdef __cpp_lib_make_unique
8287
# error "__cpp_lib_make_unique should not be defined before c++14"
8388
# endif
@@ -152,6 +157,10 @@
152157
# error "__cpp_lib_enable_shared_from_this should not be defined before c++17"
153158
# endif
154159

160+
# ifdef __cpp_lib_is_sufficiently_aligned
161+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
162+
# endif
163+
155164
# ifndef __cpp_lib_make_unique
156165
# error "__cpp_lib_make_unique should be defined in c++14"
157166
# endif
@@ -241,6 +250,10 @@
241250
# error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++17"
242251
# endif
243252

253+
# ifdef __cpp_lib_is_sufficiently_aligned
254+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
255+
# endif
256+
244257
# ifndef __cpp_lib_make_unique
245258
# error "__cpp_lib_make_unique should be defined in c++17"
246259
# endif
@@ -351,6 +364,10 @@
351364
# error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++20"
352365
# endif
353366

367+
# ifdef __cpp_lib_is_sufficiently_aligned
368+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
369+
# endif
370+
354371
# ifndef __cpp_lib_make_unique
355372
# error "__cpp_lib_make_unique should be defined in c++20"
356373
# endif
@@ -473,6 +490,10 @@
473490
# error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++23"
474491
# endif
475492

493+
# ifdef __cpp_lib_is_sufficiently_aligned
494+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
495+
# endif
496+
476497
# ifndef __cpp_lib_make_unique
477498
# error "__cpp_lib_make_unique should be defined in c++23"
478499
# endif
@@ -598,6 +619,13 @@
598619
# error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++26"
599620
# endif
600621

622+
# ifndef __cpp_lib_is_sufficiently_aligned
623+
# error "__cpp_lib_is_sufficiently_aligned should be defined in c++26"
624+
# endif
625+
# if __cpp_lib_is_sufficiently_aligned != 202411L
626+
# error "__cpp_lib_is_sufficiently_aligned should have the value 202411L in c++26"
627+
# endif
628+
601629
# ifndef __cpp_lib_make_unique
602630
# error "__cpp_lib_make_unique should be defined in c++26"
603631
# endif

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/* Constant Value
1919
__cpp_lib_adaptor_iterator_pair_constructor 202106L [C++23]
2020
__cpp_lib_addressof_constexpr 201603L [C++17]
21+
__cpp_lib_aligned_accessor 202411L [C++26]
2122
__cpp_lib_allocate_at_least 202302L [C++23]
2223
__cpp_lib_allocator_traits_is_always_equal 201411L [C++17]
2324
__cpp_lib_any 201606L [C++17]
@@ -132,6 +133,7 @@
132133
__cpp_lib_is_null_pointer 201309L [C++14]
133134
__cpp_lib_is_pointer_interconvertible 201907L [C++20]
134135
__cpp_lib_is_scoped_enum 202011L [C++23]
136+
__cpp_lib_is_sufficiently_aligned 202411L [C++26]
135137
__cpp_lib_is_swappable 201603L [C++17]
136138
__cpp_lib_is_virtual_base_of 202406L [C++26]
137139
__cpp_lib_is_within_lifetime 202306L [C++26]
@@ -264,6 +266,10 @@
264266
# error "__cpp_lib_addressof_constexpr should not be defined before c++17"
265267
# endif
266268

269+
# ifdef __cpp_lib_aligned_accessor
270+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
271+
# endif
272+
267273
# ifdef __cpp_lib_allocate_at_least
268274
# error "__cpp_lib_allocate_at_least should not be defined before c++23"
269275
# endif
@@ -704,6 +710,10 @@
704710
# error "__cpp_lib_is_scoped_enum should not be defined before c++23"
705711
# endif
706712

713+
# ifdef __cpp_lib_is_sufficiently_aligned
714+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
715+
# endif
716+
707717
# ifdef __cpp_lib_is_swappable
708718
# error "__cpp_lib_is_swappable should not be defined before c++17"
709719
# endif
@@ -1126,6 +1136,10 @@
11261136
# error "__cpp_lib_addressof_constexpr should not be defined before c++17"
11271137
# endif
11281138

1139+
# ifdef __cpp_lib_aligned_accessor
1140+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
1141+
# endif
1142+
11291143
# ifdef __cpp_lib_allocate_at_least
11301144
# error "__cpp_lib_allocate_at_least should not be defined before c++23"
11311145
# endif
@@ -1590,6 +1604,10 @@
15901604
# error "__cpp_lib_is_scoped_enum should not be defined before c++23"
15911605
# endif
15921606

1607+
# ifdef __cpp_lib_is_sufficiently_aligned
1608+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
1609+
# endif
1610+
15931611
# ifdef __cpp_lib_is_swappable
15941612
# error "__cpp_lib_is_swappable should not be defined before c++17"
15951613
# endif
@@ -2063,6 +2081,10 @@
20632081
# error "__cpp_lib_addressof_constexpr should have the value 201603L in c++17"
20642082
# endif
20652083

2084+
# ifdef __cpp_lib_aligned_accessor
2085+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
2086+
# endif
2087+
20662088
# ifdef __cpp_lib_allocate_at_least
20672089
# error "__cpp_lib_allocate_at_least should not be defined before c++23"
20682090
# endif
@@ -2611,6 +2633,10 @@
26112633
# error "__cpp_lib_is_scoped_enum should not be defined before c++23"
26122634
# endif
26132635

2636+
# ifdef __cpp_lib_is_sufficiently_aligned
2637+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
2638+
# endif
2639+
26142640
# ifndef __cpp_lib_is_swappable
26152641
# error "__cpp_lib_is_swappable should be defined in c++17"
26162642
# endif
@@ -3195,6 +3221,10 @@
31953221
# error "__cpp_lib_addressof_constexpr should have the value 201603L in c++20"
31963222
# endif
31973223

3224+
# ifdef __cpp_lib_aligned_accessor
3225+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
3226+
# endif
3227+
31983228
# ifdef __cpp_lib_allocate_at_least
31993229
# error "__cpp_lib_allocate_at_least should not be defined before c++23"
32003230
# endif
@@ -3914,6 +3944,10 @@
39143944
# error "__cpp_lib_is_scoped_enum should not be defined before c++23"
39153945
# endif
39163946

3947+
# ifdef __cpp_lib_is_sufficiently_aligned
3948+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
3949+
# endif
3950+
39173951
# ifndef __cpp_lib_is_swappable
39183952
# error "__cpp_lib_is_swappable should be defined in c++20"
39193953
# endif
@@ -4594,6 +4628,10 @@
45944628
# error "__cpp_lib_addressof_constexpr should have the value 201603L in c++23"
45954629
# endif
45964630

4631+
# ifdef __cpp_lib_aligned_accessor
4632+
# error "__cpp_lib_aligned_accessor should not be defined before c++26"
4633+
# endif
4634+
45974635
# ifndef __cpp_lib_allocate_at_least
45984636
# error "__cpp_lib_allocate_at_least should be defined in c++23"
45994637
# endif
@@ -5388,6 +5426,10 @@
53885426
# error "__cpp_lib_is_scoped_enum should have the value 202011L in c++23"
53895427
# endif
53905428

5429+
# ifdef __cpp_lib_is_sufficiently_aligned
5430+
# error "__cpp_lib_is_sufficiently_aligned should not be defined before c++26"
5431+
# endif
5432+
53915433
# ifndef __cpp_lib_is_swappable
53925434
# error "__cpp_lib_is_swappable should be defined in c++23"
53935435
# endif
@@ -6215,6 +6257,13 @@
62156257
# error "__cpp_lib_addressof_constexpr should have the value 201603L in c++26"
62166258
# endif
62176259

6260+
# ifndef __cpp_lib_aligned_accessor
6261+
# error "__cpp_lib_aligned_accessor should be defined in c++26"
6262+
# endif
6263+
# if __cpp_lib_aligned_accessor != 202411L
6264+
# error "__cpp_lib_aligned_accessor should have the value 202411L in c++26"
6265+
# endif
6266+
62186267
# ifndef __cpp_lib_allocate_at_least
62196268
# error "__cpp_lib_allocate_at_least should be defined in c++26"
62206269
# endif
@@ -7201,6 +7250,13 @@
72017250
# error "__cpp_lib_is_scoped_enum should have the value 202011L in c++26"
72027251
# endif
72037252

7253+
# ifndef __cpp_lib_is_sufficiently_aligned
7254+
# error "__cpp_lib_is_sufficiently_aligned should be defined in c++26"
7255+
# endif
7256+
# if __cpp_lib_is_sufficiently_aligned != 202411L
7257+
# error "__cpp_lib_is_sufficiently_aligned should have the value 202411L in c++26"
7258+
# endif
7259+
72047260
# ifndef __cpp_lib_is_swappable
72057261
# error "__cpp_lib_is_swappable should be defined in c++26"
72067262
# endif

libcxx/utils/generate_feature_test_macro_components.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ def add_version_header(tc):
8989
"values": {"c++17": 201603},
9090
"headers": ["memory"],
9191
},
92+
{
93+
"name": "__cpp_lib_aligned_accessor",
94+
"values": {"c++26": 202411},
95+
"headers": ["mdspan"],
96+
},
9297
{
9398
"name": "__cpp_lib_allocate_at_least",
9499
"values": {
@@ -781,6 +786,11 @@ def add_version_header(tc):
781786
"values": {"c++23": 202011},
782787
"headers": ["type_traits"],
783788
},
789+
{
790+
"name": "__cpp_lib_is_sufficiently_aligned",
791+
"values": {"c++26": 202411},
792+
"headers": ["memory"],
793+
},
784794
{
785795
"name": "__cpp_lib_is_swappable",
786796
"values": {"c++17": 201603},

0 commit comments

Comments
 (0)