Index: clang/lib/Format/UnwrappedLineParser.cpp =================================================================== --- clang/lib/Format/UnwrappedLineParser.cpp +++ clang/lib/Format/UnwrappedLineParser.cpp @@ -1626,6 +1626,7 @@ case tok::lessequal: case tok::question: case tok::colon: + case tok::ellipsis: case tok::kw_true: case tok::kw_false: if (SeenArrow) { Index: clang/unittests/Format/FormatTest.cpp =================================================================== --- clang/unittests/Format/FormatTest.cpp +++ clang/unittests/Format/FormatTest.cpp @@ -14111,6 +14111,8 @@ " -> int {\n" " return 1; //\n" "};"); + verifyFormat("[]() -> Void {};"); + verifyFormat("[a, b]() -> Tuple { return {}; };"); // Lambdas with explicit template argument lists. verifyFormat(