Index: cfe/trunk/lib/Format/UnwrappedLineParser.cpp =================================================================== --- cfe/trunk/lib/Format/UnwrappedLineParser.cpp +++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp @@ -1422,6 +1422,7 @@ case tok::numeric_constant: case tok::coloncolon: case tok::kw_mutable: + case tok::kw_noexcept: nextToken(); break; case tok::arrow: Index: cfe/trunk/unittests/Format/FormatTest.cpp =================================================================== --- cfe/trunk/unittests/Format/FormatTest.cpp +++ cfe/trunk/unittests/Format/FormatTest.cpp @@ -11725,6 +11725,8 @@ TEST_F(FormatTest, FormatsLambdas) { verifyFormat("int c = [b]() mutable { return [&b] { return b++; }(); }();\n"); + verifyFormat( + "int c = [b]() mutable noexcept { return [&b] { return b++; }(); }();\n"); verifyFormat("int c = [&] { [=] { return b++; }(); }();\n"); verifyFormat("int c = [&, &a, a] { [=, c, &d] { return b++; }(); }();\n"); verifyFormat("int c = [&a, &a, a] { [=, a, b, &c] { return b++; }(); }();\n");