From: Alexander Kornienko Date: Fri, 1 Feb 2013 18:28:04 +0000 (+0000) Subject: Micro change: moved '{' for better readability (+don't confuse -Wimplicit-fallthrough) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5236b93ddd9de6a15d4fdab96e262108f63e116;p=clang Micro change: moved '{' for better readability (+don't confuse -Wimplicit-fallthrough) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174202 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 86cf657674..4ed0bd0c6e 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -975,7 +975,7 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression, 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(bool isUnaryExpression, 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(bool isUnaryExpression, break; } // Fall through - + case tok::annot_decltype: case tok::kw_char: case tok::kw_wchar_t: @@ -1023,8 +1023,8 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression, 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();