[cfe-commits] r150790 - in /cfe/trunk: include/clang/Parse/Parser.h lib/Parse/ParseInit.cpp test/Parser/cxx0x-lambda-expressions.cpp

Eli Friedman eli.friedman at gmail.com
Thu Feb 16 20:19:00 PST 2012

On Thu, Feb 16, 2012 at 7:49 PM, Douglas Gregor <dgregor at apple.com> wrote:
> Author: dgregor
> Date: Thu Feb 16 21:49:44 2012
> New Revision: 150790
> URL: http://llvm.org/viewvc/llvm-project?rev=150790&view=rev
> Log:
> Disambiguate between C++11 lambda expressions and C99 array
> designators in the parser. In the worst case, this disambiguation
> requires tentative parsing just past the closing ']', but for most
> cases we'll be able to tell by looking ahead just one token (without
> going into the heavyweight tentative parsing machinery).

We're lucky that array designators, Objective-C message sends, and
lambdas are all syntactically distinct in this context. :)


More information about the cfe-commits mailing list