r189933 - Remove code duplication in unwrapped line parser.
Manuel Klimek
klimek at google.com
Wed Sep 4 06:34:14 PDT 2013
Author: klimek
Date: Wed Sep 4 08:34:14 2013
New Revision: 189933
URL: http://llvm.org/viewvc/llvm-project?rev=189933&view=rev
Log:
Remove code duplication in unwrapped line parser.
Modified:
cfe/trunk/lib/Format/UnwrappedLineParser.cpp
Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.cpp?rev=189933&r1=189932&r2=189933&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Wed Sep 4 08:34:14 2013
@@ -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;
}
More information about the cfe-commits
mailing list