E.g.:
Foo([]()->std::vector<int> { return { 2 }; }());
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201139
91177308-0d34-0410-b5e6-
96231b3b80d8
case tok::less:
case tok::greater:
case tok::identifier:
+ case tok::coloncolon:
case tok::kw_mutable:
case tok::arrow:
nextToken();
// Lambdas with return types.
verifyFormat("int c = []()->int { return 2; }();\n");
verifyFormat("int c = []()->vector<int> { return { 2 }; }();\n");
+ verifyFormat("Foo([]()->std::vector<int> { return { 2 }; }());");
// Not lambdas.
verifyFormat("constexpr char hello[]{ \"hello\" };");