[cfe-commits] [PATCH] Parsing C++0x lambda expressions

John Freeman jfreeman at cse.tamu.edu
Wed Jul 13 19:07:42 PDT 2011


On 7/13/2011 6:23 PM, Douglas Gregor wrote:
> Do we want to save the locate not the '&' or '='? I guess it isn't necessary.

I can add it later if we need it.

> Should we have a custom diagnostic for &this?

Will tok::identifier match 'this'? Even if it does, I was trying to 
defer as many checks as possible to Sema. What is the recommended approach?


Attached is an updated patch with suggested fixes.

- John
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lambda-parse.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110713/228be422/attachment.ksh>


More information about the cfe-commits mailing list