]> granicus.if.org Git - clang/commitdiff
minor cleanup
authorChris Lattner <sabre@nondot.org>
Wed, 3 Oct 2007 22:03:06 +0000 (22:03 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 3 Oct 2007 22:03:06 +0000 (22:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42596 91177308-0d34-0410-b5e6-96231b3b80d8

Parse/ParseExpr.cpp

index 6bdde190321ce3bce71fc1a5c3ae201f2ac2bb02..4608898d993f95cefcf7995b0c3948d3446ba84f 100644 (file)
@@ -174,8 +174,8 @@ Parser::ExprResult Parser::ParseExpression() {
 
 /// This routine is called when the '@' is seen and consumed. 
 /// Current token is an Identifier and is not a 'try'. This
-/// routine is necessary to disambiguate @try-statement from
-/// ,for example, @encode-expression.
+/// routine is necessary to disambiguate @try-statement from,
+/// for example, @encode-expression.
 ///
 Parser::ExprResult Parser::ParseExpressionWithLeadingAt(SourceLocation &AtLoc) {
   ExprResult LHS = ParseObjCExpression(AtLoc);
@@ -600,13 +600,12 @@ Parser::ExprResult Parser::ParseCastExpression(bool isUnaryExpression) {
   case tok::kw_reinterpret_cast:
   case tok::kw_static_cast:
     return ParseCXXCasts();
-  case tok::at:
-    {
-      SourceLocation AtLoc = ConsumeToken();
-      return ParseObjCExpression(AtLoc);
-    }
+  case tok::at: {
+    SourceLocation AtLoc = ConsumeToken();
+    return ParseObjCExpression(AtLoc);
+  }
   case tok::l_square:
-    return ParseObjCMessageExpression ();
+    return ParseObjCMessageExpression();
   default:
     Diag(Tok, diag::err_expected_expression);
     return ExprResult(true);