Before:
return [ i, args... ]{};
After:
return [i, args...] {};
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210514
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!FormatTok->isOneOf(tok::identifier, tok::kw_this))
return false;
nextToken();
+ if (FormatTok->is(tok::ellipsis))
+ nextToken();
if (FormatTok->is(tok::comma)) {
nextToken();
} else if (FormatTok->is(tok::r_square)) {
" return j;\n"
" });");
+ // More complex introducers.
+ verifyFormat("return [i, args...] {};");
+
// Not lambdas.
verifyFormat("constexpr char hello[]{\"hello\"};");
verifyFormat("double &operator[](int i) { return 0; }\n"