Lines Matching refs:Res

229   ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::Conditional));  in ParseConstantExpressionInExprEvalContext()  local
230 return Actions.ActOnConstantExpression(Res); in ParseConstantExpressionInExprEvalContext()
256 ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::Conditional)); in ParseCaseExpression() local
257 return Actions.ActOnCaseExpr(CaseLoc, Res); in ParseCaseExpression()
270 ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::LogicalOr)); in ParseConstraintExpression() local
271 if (Res.isUsable() && !Actions.CheckConstraintExpression(Res.get())) { in ParseConstraintExpression()
272 Actions.CorrectDelayedTyposInExpr(Res); in ParseConstraintExpression()
275 return Res; in ParseConstraintExpression()
712 ExprResult Res = ParseCastExpression(ParseKind, in ParseCastExpression() local
720 return Res; in ParseCastExpression()
1055 ExprResult Res; in ParseCastExpression() local
1093 Res = ParseParenExpression(ParenExprType, false/*stopIfCastExr*/, in ParseCastExpression()
1100 return Res; in ParseCastExpression()
1112 return Res; in ParseCastExpression()
1128 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
1134 Res = ParseCXXBoolLiteral(); in ParseCastExpression()
1139 Res = ParseObjCBoolLiteral(); in ParseCastExpression()
1149 Res = Actions.ActOnCXXNullPtrLiteral(ConsumeToken()); in ParseCastExpression()
1154 Res = getExprAnnotation(Tok); in ParseCastExpression()
1155 if (!Res.isInvalid() && Tok.getKind() == tok::annot_overload_set) in ParseCastExpression()
1156 Res = Actions.ActOnNameClassifiedAsOverloadSet(getCurScope(), Res.get()); in ParseCastExpression()
1158 if (!Res.isInvalid() && Tok.is(tok::less)) in ParseCastExpression()
1159 checkPotentialAngleBracket(Res); in ParseCastExpression()
1167 Res = tryParseCXXIdExpression(SS, isAddressOfOperand, Replacement); in ParseCastExpression()
1168 assert(!Res.isUnset() && in ParseCastExpression()
1266 Res = Actions.ObjC().ActOnClassPropertyRefExpr(II, PropertyName, ILoc, in ParseCastExpression()
1280 Res = ParseObjCMessageExpressionBody(SourceLocation(), ILoc, nullptr, in ParseCastExpression()
1313 Res = ParseObjCMessageExpressionBody(SourceLocation(), in ParseCastExpression()
1343 Res = Actions.ActOnIdExpression( in ParseCastExpression()
1348 if (!Res.isInvalid() && Res.isUnset()) { in ParseCastExpression()
1355 Res = tryParseCXXPackIndexingExpression(Res); in ParseCastExpression()
1356 if (!Res.isInvalid() && Tok.is(tok::less)) in ParseCastExpression()
1357 checkPotentialAngleBracket(Res); in ParseCastExpression()
1365 Res = Actions.ActOnCharacterConstant(Tok, /*UDLScope*/getCurScope()); in ParseCastExpression()
1381 Res = Actions.ActOnPredefinedExpr(Tok.getLocation(), SavedKind); in ParseCastExpression()
1391 Res = ParseStringLiteralExpression(true); in ParseCastExpression()
1394 Res = ParseGenericSelectionExpression(); in ParseCastExpression()
1397 Res = ParseAvailabilityCheckExpr(Tok.getLocation()); in ParseCastExpression()
1416 Res = Actions.ActOnGNUNullExpr(ConsumeToken()); in ParseCastExpression()
1435 Res = ParseCastExpression(getLangOpts().CPlusPlus ? in ParseCastExpression()
1442 assert(Res.isInvalid()); in ParseCastExpression()
1446 if (!Res.isInvalid()) { in ParseCastExpression()
1447 Expr *Arg = Res.get(); in ParseCastExpression()
1448 Res = Actions.ActOnUnaryOp(getCurScope(), SavedTok.getLocation(), in ParseCastExpression()
1450 if (Res.isInvalid()) in ParseCastExpression()
1451 Res = Actions.CreateRecoveryExpr(SavedTok.getLocation(), in ParseCastExpression()
1454 return Res; in ParseCastExpression()
1463 Res = ParseCastExpression(AnyCastExpr, /*isAddressOfOperand=*/true); in ParseCastExpression()
1464 if (!Res.isInvalid()) { in ParseCastExpression()
1465 Expr *Arg = Res.get(); in ParseCastExpression()
1466 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Arg); in ParseCastExpression()
1467 if (Res.isInvalid()) in ParseCastExpression()
1468 Res = Actions.CreateRecoveryExpr(Tok.getLocation(), Arg->getEndLoc(), in ParseCastExpression()
1471 return Res; in ParseCastExpression()
1485 Res = ParseCastExpression(AnyCastExpr); in ParseCastExpression()
1486 if (!Res.isInvalid()) { in ParseCastExpression()
1487 Expr *Arg = Res.get(); in ParseCastExpression()
1488 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Arg, in ParseCastExpression()
1490 if (Res.isInvalid()) in ParseCastExpression()
1491 Res = Actions.CreateRecoveryExpr(SavedLoc, Arg->getEndLoc(), Arg); in ParseCastExpression()
1493 return Res; in ParseCastExpression()
1500 Res = ParseCastExpression(AnyCastExpr); in ParseCastExpression()
1501 if (!Res.isInvalid()) in ParseCastExpression()
1502 Res = Actions.ActOnCoawaitExpr(getCurScope(), CoawaitLoc, Res.get()); in ParseCastExpression()
1503 return Res; in ParseCastExpression()
1512 Res = ParseCastExpression(AnyCastExpr); in ParseCastExpression()
1513 if (!Res.isInvalid()) in ParseCastExpression()
1514 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get()); in ParseCastExpression()
1515 return Res; in ParseCastExpression()
1535 Res = ParseUnaryExprOrTypeTraitExpression(); in ParseCastExpression()
1550 Res = Actions.ActOnAddrLabel(AmpAmpLoc, Tok.getLocation(), LD); in ParseCastExpression()
1562 Res = ParseCXXCasts(); in ParseCastExpression()
1567 Res = ParseBuiltinBitCast(); in ParseCastExpression()
1572 Res = ParseCXXTypeid(); in ParseCastExpression()
1577 Res = ParseCXXUuidof(); in ParseCastExpression()
1580 Res = ParseCXXThis(); in ParseCastExpression()
1583 Res = ParseSYCLUniqueStableNameExpression(); in ParseCastExpression()
1608 Res = ParseObjCMessageExpressionBody(SourceLocation(), SourceLocation(), in ParseCastExpression()
1684 Res = ParseCXXTypeConstructExpression(DS); in ParseCastExpression()
1717 Res = ParseCXXIdExpression(isAddressOfOperand); in ParseCastExpression()
1739 Res = ParseCXXIdExpression(isAddressOfOperand); in ParseCastExpression()
1757 Res = ParseCXXNewExpression(true, CCLoc); in ParseCastExpression()
1764 Res = ParseCXXDeleteExpression(true, CCLoc); in ParseCastExpression()
1777 Res = ParseCXXNewExpression(false, Tok.getLocation()); in ParseCastExpression()
1784 Res = ParseCXXDeleteExpression(false, Tok.getLocation()); in ParseCastExpression()
1789 Res = ParseRequiresExpression(); in ParseCastExpression()
1807 Res = ParseExpression(); in ParseCastExpression()
1811 if (!Res.isInvalid()) in ParseCastExpression()
1812 Res = Actions.ActOnNoexceptExpr(KeyLoc, T.getOpenLocation(), Res.get(), in ParseCastExpression()
1821 Res = ParseTypeTrait(); in ParseCastExpression()
1828 Res = ParseArrayTypeTrait(); in ParseCastExpression()
1838 Res = ParseExpressionTrait(); in ParseCastExpression()
1848 Res = ParseBlockLiteralExpression(); in ParseCastExpression()
1875 Res = TryParseLambdaExpression(); in ParseCastExpression()
1876 if (!Res.isInvalid() && !Res.get()) { in ParseCastExpression()
1881 Res = ParseObjCMessageExpression(); in ParseCastExpression()
1885 Res = ParseLambdaExpression(); in ParseCastExpression()
1889 Res = ParseObjCMessageExpression(); in ParseCastExpression()
1906 return Res; in ParseCastExpression()
1911 if (Res.isInvalid()) in ParseCastExpression()
1912 return Res; in ParseCastExpression()
1922 return Res; in ParseCastExpression()
1930 return Res; in ParseCastExpression()
1937 << Tok.getKind() << Res.get()->getSourceRange() in ParseCastExpression()
1938 << FixItHint::CreateInsertion(Res.get()->getBeginLoc(), "(") in ParseCastExpression()
1945 Res = ParsePostfixExpressionSuffix(Res); in ParseCastExpression()
1949 if (Expr *PostfixExpr = Res.get()) { in ParseCastExpression()
1958 return Res; in ParseCastExpression()
2703 ExprResult Res; in ParseBuiltinPrimaryExpression() local
2737 Res = ExprError(); in ParseBuiltinPrimaryExpression()
2739 Res = Actions.ActOnVAArg(StartLoc, Expr.get(), Ty.get(), ConsumeParen()); in ParseBuiltinPrimaryExpression()
2806 Res = ParseExpression(); in ParseBuiltinPrimaryExpression()
2807 if (Res.isInvalid()) { in ParseBuiltinPrimaryExpression()
2809 return Res; in ParseBuiltinPrimaryExpression()
2811 Comps.back().U.E = Res.get(); in ParseBuiltinPrimaryExpression()
2818 Res = ExprError(); in ParseBuiltinPrimaryExpression()
2820 Res = ExprError(); in ParseBuiltinPrimaryExpression()
2823 Res = Actions.ActOnBuiltinOffsetOf(getCurScope(), StartLoc, TypeLoc, in ParseBuiltinPrimaryExpression()
2862 Res = Actions.ActOnChooseExpr(StartLoc, Cond.get(), Expr1.get(), in ParseBuiltinPrimaryExpression()
2891 Res = Actions.ActOnAsTypeExpr(Expr.get(), DestTy.get(), StartLoc, in ParseBuiltinPrimaryExpression()
2920 Res = Actions.ActOnConvertVectorExpr(Expr.get(), DestTy.get(), StartLoc, in ParseBuiltinPrimaryExpression()
2957 Res = Actions.ActOnSourceLocExpr(Kind, StartLoc, ConsumeParen()); in ParseBuiltinPrimaryExpression()
2962 if (Res.isInvalid()) in ParseBuiltinPrimaryExpression()
2967 return ParsePostfixExpressionSuffix(Res.get()); in ParseBuiltinPrimaryExpression()