diff options
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
-rw-r--r-- | clang/lib/Format/UnwrappedLineParser.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index c780fdb566d..6a491c42628 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -832,16 +832,7 @@ void UnwrappedLineParser::parseParens() { return; case tok::l_brace: { if (!tryToParseBracedList()) { - nextToken(); - { - ScopedLineState LineState(*this); - ScopedDeclarationState DeclarationState(*Line, DeclarationScopeStack, - /*MustBeDeclaration=*/false); - Line->Level += 1; - parseLevel(/*HasOpeningBrace=*/true); - Line->Level -= 1; - } - nextToken(); + parseChildBlock(); } break; } |