r174202 - Micro change: moved '{' for better readability (+don't confuse -Wimplicit-fallthrough)

Alexander Kornienko alexfh at google.com
Fri Feb 1 10:28:04 PST 2013


Author: alexfh
Date: Fri Feb  1 12:28:04 2013
New Revision: 174202

URL: http://llvm.org/viewvc/llvm-project?rev=174202&view=rev
Log:
Micro change: moved '{' for better readability (+don't confuse -Wimplicit-fallthrough)

Modified:
    cfe/trunk/lib/Parse/ParseExpr.cpp

Modified: cfe/trunk/lib/Parse/ParseExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExpr.cpp?rev=174202&r1=174201&r2=174202&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExpr.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExpr.cpp Fri Feb  1 12:28:04 2013
@@ -975,7 +975,7 @@ ExprResult Parser::ParseCastExpression(b
   case tok::annot_typename:
     if (isStartOfObjCClassMessageMissingOpenBracket()) {
       ParsedType Type = getTypeAnnotation(Tok);
-      
+
       // Fake up a Declarator to use with ActOnTypeName.
       DeclSpec DS(AttrFactory);
       DS.SetRangeStart(Tok.getLocation());
@@ -985,7 +985,7 @@ ExprResult Parser::ParseCastExpression(b
       unsigned DiagID;
       DS.SetTypeSpecType(TST_typename, Tok.getAnnotationEndLoc(),
                          PrevSpec, DiagID, Type);
-      
+
       Declarator DeclaratorInfo(DS, Declarator::TypeNameContext);
       TypeResult Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);
       if (Ty.isInvalid())
@@ -997,7 +997,7 @@ ExprResult Parser::ParseCastExpression(b
       break;
     }
     // Fall through
-      
+
   case tok::annot_decltype:
   case tok::kw_char:
   case tok::kw_wchar_t:
@@ -1023,8 +1023,8 @@ ExprResult Parser::ParseCastExpression(b
   case tok::kw_image1d_buffer_t:
   case tok::kw_image2d_t:
   case tok::kw_image2d_array_t:
-  case tok::kw_image3d_t: {
-  case tok::kw_event_t:
+  case tok::kw_image3d_t:
+  case tok::kw_event_t: {
     if (!getLangOpts().CPlusPlus) {
       Diag(Tok, diag::err_expected_expression);
       return ExprError();





More information about the cfe-commits mailing list