]> granicus.if.org Git - clang/commit
Improve recovery for lambda expressions that have 'mutable' or a
authorDouglas Gregor <dgregor@apple.com>
Thu, 16 Feb 2012 21:53:36 +0000 (21:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 16 Feb 2012 21:53:36 +0000 (21:53 +0000)
commitc9ecec404fe28d53aa49b3c830d8353e97bea5f2
tree4aaf2e993d195dc55121a5c5825f12aef51caf73
parent3f77c7b56d515a6756dba63a3dfa0a332711a779
Improve recovery for lambda expressions that have 'mutable' or a
trailing return type but not a '()'. Recover by inserting the
parentheses. Thanks to Xeo on IRC for the example.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150727 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseExprCXX.cpp
test/Parser/cxx0x-lambda-expressions.cpp