Skip to content

Commit 12f8ed5

Browse files
authored
[Clang] Mark P1061 (Structured Bindings can introduce a Pack) as implemented (llvm#127980)
Implemented in abc8812
1 parent 0c809ea commit 12f8ed5

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,7 @@ Conditional ``explicit`` __cpp_conditional_explicit C+
16401640
``static operator()`` __cpp_static_call_operator C++23 C++03
16411641
Attributes on Lambda-Expressions C++23 C++11
16421642
Attributes on Structured Bindings __cpp_structured_bindings C++26 C++03
1643+
Packs in Structured Bindings __cpp_structured_bindings C++26 C++03
16431644
Static assert with user-generated message __cpp_static_assert >= 202306L C++26 C++11
16441645
Pack Indexing __cpp_pack_indexing C++26 C++03
16451646
``= delete ("should have a reason");`` __cpp_deleted_function C++26 C++03

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ C++ Language Changes
7171
C++2c Feature Support
7272
^^^^^^^^^^^^^^^^^^^^^
7373

74+
- Implemented `P1061R10 Structured Bindings can introduce a Pack <https://wg21.link/P1061R10>`_.
75+
7476
C++23 Feature Support
7577
^^^^^^^^^^^^^^^^^^^^^
7678

clang/lib/Frontend/InitPreprocessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
720720
Builder.defineMacro("__cpp_nested_namespace_definitions", "201411L");
721721
Builder.defineMacro("__cpp_variadic_using", "201611L");
722722
Builder.defineMacro("__cpp_aggregate_bases", "201603L");
723-
Builder.defineMacro("__cpp_structured_bindings", "202403L");
723+
Builder.defineMacro("__cpp_structured_bindings", "202411L");
724724
Builder.defineMacro("__cpp_nontype_template_args",
725725
"201411L"); // (not latest)
726726
Builder.defineMacro("__cpp_fold_expressions", "201603L");

clang/test/Lexer/cxx-features.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
#error "wrong value for __cpp_aggregate_bases"
230230
#endif
231231

232-
#if check(structured_bindings, 0, 0, 0, 202403L, 202403L, 202403L, 202403L)
232+
#if check(structured_bindings, 0, 0, 0, 202411L, 202411L, 202411L, 202411L)
233233
#error "wrong value for __cpp_structured_bindings"
234234
#endif
235235

clang/www/cxx_status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ <h2 id="cxx26">C++2c implementation status</h2>
244244
<tr>
245245
<td>Structured Bindings can introduce a Pack</td>
246246
<td><a href="https://wg21.link/P1061R10">P1061R10</a></td>
247-
<td class="none" align="center">No</td>
247+
<td class="unreleased" align="center">Clang 21</td>
248248
</tr>
249249
<tr>
250250
<td>The Oxford variadic comma</td>

0 commit comments

Comments
 (0)