summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-05-03 21:57:40 +0000
committerNico Weber <nicolasweber@gmx.de>2014-05-03 21:57:40 +0000
commit83ea012591cbbbd4928b01ee0bd8cbc1a7be2bc1 (patch)
tree1db2b43bddcebff0d6e5cb7628edc6d2efc4255a /clang/lib/Parse/ParseExpr.cpp
parent3d082fa50704f55a3c6d25c9d6b25d652e7d84ae (diff)
downloadbcm5719-llvm-83ea012591cbbbd4928b01ee0bd8cbc1a7be2bc1.tar.gz
bcm5719-llvm-83ea012591cbbbd4928b01ee0bd8cbc1a7be2bc1.zip
Wrap a few lines at 80 columns, change a confusing indent. No behavior change.
llvm-svn: 207921
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 15b327d1efb..eea475f869d 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -637,7 +637,8 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression,
// If this expression is limited to being a unary-expression, the parent can
// not start a cast expression.
ParenParseOption ParenExprType =
- (isUnaryExpression && !getLangOpts().CPlusPlus)? CompoundLiteral : CastExpr;
+ (isUnaryExpression && !getLangOpts().CPlusPlus) ? CompoundLiteral
+ : CastExpr;
ParsedType CastTy;
SourceLocation RParenLoc;
@@ -2078,7 +2079,7 @@ Parser::ParseParenExpression(ParenParseOption &ExprType, bool stopIfCastExpr,
CastTy = Ty.get();
return ExprResult();
}
-
+
// Reject the cast of super idiom in ObjC.
if (Tok.is(tok::identifier) && getLangOpts().ObjC1 &&
Tok.getIdentifierInfo() == Ident_super &&
@@ -2125,7 +2126,8 @@ Parser::ParseParenExpression(ParenParseOption &ExprType, bool stopIfCastExpr,
// Don't build a paren expression unless we actually match a ')'.
if (!Result.isInvalid() && Tok.is(tok::r_paren))
- Result = Actions.ActOnParenExpr(OpenLoc, Tok.getLocation(), Result.take());
+ Result =
+ Actions.ActOnParenExpr(OpenLoc, Tok.getLocation(), Result.take());
}
// Match the ')'.
OpenPOWER on IntegriCloud