[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 18 11:54:29 PST 2025
================
@@ -1099,6 +1099,13 @@ def err_lambda_capture_misplaced_ellipsis : Error<
"the name of the capture">;
def err_lambda_capture_multiple_ellipses : Error<
"multiple ellipses in pack capture">;
+def err_binding_multiple_ellipses : Error<
+ "multiple packs in structured binding declaration">;
+def note_previous_ellipsis : Note<
+ "previous binding pack specified here">;
+def ext_cxx_binding_pack : ExtWarn<
----------------
cor3ntin wrote:
The usual pattern is that
In older language modes we say "xxx is a c++YY extension" and in c++YY we say "xxx is incompatible with C++ standards before C++YY" (and that warning is in the CXXPreYYCompat group and DefaultIgnore)
I should have told you to search for `CXXPre26Compat` for examples :)
https://github.com/llvm/llvm-project/pull/121417
More information about the cfe-commits
mailing list