<div dir="ltr">I have a few questions about the state of initialized lambda captures wrt clang:<div><br></div><div>First off, is anybody actively working on these? If so, I'll just slink away quietly :)</div><div><br></div>
<div>If not, I want to see if this sounds reasonable:</div><div><br></div><div>The way I think of these in my head is as-if they have an implicit specifier of 'auto' as they haven't got a declarator specifier to parse.</div>
<div><br></div><div>My thoughts thus far:</div><div>- Invent a DeclSpec corresponding to the auto</div><div>- Make a Declarator with our new DeclSpec</div><div>- Give the Declarator our previously parsed identifier with SetIdentifier</div>
<div>- Using the lambda body's scope, use HandleDeclarator to introduce the identifier to the scope</div><div>- Attach the init-capture's initializer using AddInitializerToDecl</div><div>- ???</div><div>- Profit</div>
<div><br></div><div>While more than this must happen, I wanted to see if I was on-track here.</div><div><br></div><div>Thanks</div><div>-- </div><div>David Majnemer</div></div>