[pseudo] Simplify/loosen the grammar around lambda captures.
authorSam McCall <sam.mccall@gmail.com>
Tue, 28 Jun 2022 08:18:45 +0000 (10:18 +0200)
committerSam McCall <sam.mccall@gmail.com>
Tue, 28 Jun 2022 13:56:12 +0000 (15:56 +0200)
commitaacefc817d9385835db5b5e30a21687ddb4f3f93
tree68b7aacfa949e77d76152a74d556bfd479edc916
parent3fbc945c3accf51f0cfa0b31e0911ba0297c7ef0
[pseudo] Simplify/loosen the grammar around lambda captures.

Treat captures as a uniform list, rather than default-captures being special
snowflakes that may only appear at the start.

This accepts a larger set of (incorrect) code, and simplifies error-handling
by making this fit into the usual homogeneous-list pattern.

Differential Revision: https://reviews.llvm.org/D128708
clang-tools-extra/pseudo/lib/cxx.bnf
clang-tools-extra/pseudo/test/cxx/capture-list.cpp [new file with mode: 0644]