From f017dc0156a0293ae923f11378fdfd5ff4103d18 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Wed, 4 Sep 2013 13:34:14 +0000 Subject: Remove code duplication in unwrapped line parser. llvm-svn: 189933 --- clang/lib/Format/UnwrappedLineParser.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'clang/lib/Format/UnwrappedLineParser.cpp') 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; } -- cgit v1.2.3