This is an archive of the discontinued LLVM Phabricator instance.

[pseudo] Simplify/loosen the grammar around lambda captures.
ClosedPublic

Authored by sammccall on Jun 28 2022, 1:18 AM.

Details

Summary

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.

Diff Detail

Event Timeline

sammccall created this revision.Jun 28 2022, 1:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 1:18 AM
sammccall requested review of this revision.Jun 28 2022, 1:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 1:18 AM
hokein accepted this revision.Jun 28 2022, 6:41 AM
This revision is now accepted and ready to land.Jun 28 2022, 6:41 AM