llvm-project/clang/www
Corentin Jabot 127bf44385 [Clang][C++20] Support capturing structured bindings in lambdas
This completes the implementation of P1091R3 and P1381R1.

This patch allow the capture of structured bindings
both for C++20+ and C++17, with extension/compat warning.

In addition, capturing an anonymous union member,
a bitfield, or a structured binding thereof now has a
better diagnostic.

We only support structured bindings - as opposed to other kinds
of structured statements/blocks. We still emit an error for those.

In addition, support for structured bindings capture is entirely disabled in
OpenMP mode as this needs more investigation - a specific diagnostic indicate the feature is not yet supported there.

Note that the rest of P1091R3 (static/thread_local structured bindings) was already implemented.

at the request of @shafik, i can confirm the correct behavior of lldb wit this change.

Fixes https://github.com/llvm/llvm-project/issues/54300
Fixes https://github.com/llvm/llvm-project/issues/54300
Fixes https://github.com/llvm/llvm-project/issues/52720

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D122768
2022-08-04 10:12:53 +02:00
..
analyzer Fixed a number of typos 2022-08-01 13:13:18 -04:00
demo Replace links to archived mailing lists by links to Discourse forums 2022-03-23 10:10:20 -04:00
OpenProjects.html
UniversalDriver.html
builtins.py
c_dr_status.html Update the status for more C DRs 2022-07-12 14:06:39 -04:00
c_status.html [Clang] Update the status of N2393 in c_status.html 2022-07-23 15:15:12 +02:00
carbon-compile.png
clang_video-05-25-2007.html
clang_video-07-25-2007.html
compatibility.html
content.css
cxx_compatibility.html
cxx_dr_status.html [Clang] Diagnose ill-formed constant expression when setting a non fixed enum to a value outside the range of the enumeration values 2022-07-28 15:27:50 -07:00
cxx_status.html [Clang][C++20] Support capturing structured bindings in lambdas 2022-08-04 10:12:53 +02:00
diagnostics.html
favicon.ico
feature-compile1.png
feature-compile2.png
feature-memory1.png
features.html
get_involved.html Update references to Discourse instead of the mailing lists. 2022-07-08 11:16:47 -07:00
get_started.html [NFC] Suggest Release mode in clang GettingStarted.html 2022-06-10 11:00:05 +05:30
hacking.html [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
index.html
libstdc++4.4-clang0x.patch
libstdc++4.6-clang11.patch
libstdc++4.7-clang11.patch
make_cxx_dr_status [clang][www] Port make_cxx_dr_status script to Python3 2022-02-22 15:47:43 +01:00
menu.css
menu.html.incl Replace links to archived mailing lists by links to Discourse forums 2022-03-23 10:10:20 -04:00
related.html [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
robots.txt