r174823 - Reformat formatter code. No functionality change.

Nico Weber nicolasweber at gmx.de
Sat Feb 9 20:38:23 PST 2013


Author: nico
Date: Sat Feb  9 22:38:23 2013
New Revision: 174823

URL: http://llvm.org/viewvc/llvm-project?rev=174823&view=rev
Log:
Reformat formatter code. No functionality change.


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=174823&r1=174822&r2=174823&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Sat Feb  9 22:38:23 2013
@@ -447,17 +447,16 @@ void UnwrappedLineParser::parseParens()
     case tok::r_paren:
       nextToken();
       return;
-    case tok::l_brace:
-      {
-        nextToken();
-        ScopedLineState LineState(*this);
-        ScopedDeclarationState DeclarationState(*Line, DeclarationScopeStack,
-                                                /*MustBeDeclaration=*/ false);
-        Line->Level += 1;
-        parseLevel(/*HasOpeningBrace=*/ true);
-        Line->Level -= 1;
-      }
+    case tok::l_brace: {
+      nextToken();
+      ScopedLineState LineState(*this);
+      ScopedDeclarationState DeclarationState(*Line, DeclarationScopeStack,
+                                              /*MustBeDeclaration=*/ false);
+      Line->Level += 1;
+      parseLevel(/*HasOpeningBrace=*/ true);
+      Line->Level -= 1;
       break;
+    }
     default:
       nextToken();
       break;





More information about the cfe-commits mailing list