• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Parse/

Lines Matching defs:Res

207   ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::Conditional));
208 return Actions.ActOnConstantExpression(Res);
225 ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::Conditional));
226 return Actions.ActOnCaseExpr(CaseLoc, Res);
239 ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::LogicalOr));
240 if (Res.isUsable() && !Actions.CheckConstraintExpression(Res.get())) {
241 Actions.CorrectDelayedTyposInExpr(Res);
244 return Res;
681 ExprResult Res = ParseCastExpression(ParseKind,
689 return Res;
918 ExprResult Res;
957 Res = ParseParenExpression(ParenExprType, false/*stopIfCastExr*/,
964 return Res;
976 return Res;
991 Res = Actions.ActOnNumericConstant(Tok, /*UDLScope*/getCurScope());
997 Res = ParseCXXBoolLiteral();
1002 Res = ParseObjCBoolLiteral();
1007 Res = Actions.ActOnCXXNullPtrLiteral(ConsumeToken());
1012 Res = getExprAnnotation(Tok);
1014 if (Expr *E = Res.get()) {
1023 Res = Actions.TransformToPotentiallyEvaluated(Res.get());
1028 if (!Res.isInvalid() && Tok.is(tok::less))
1029 checkPotentialAngleBracket(Res);
1037 Res = tryParseCXXIdExpression(SS, isAddressOfOperand, Replacement);
1038 assert(!Res.isUnset() &&
1185 Res = Actions.ActOnClassPropertyRefExpr(II, PropertyName,
1199 Res = ParseObjCMessageExpressionBody(SourceLocation(), ILoc, nullptr,
1232 Res = ParseObjCMessageExpressionBody(SourceLocation(),
1262 Res = Actions.ActOnIdExpression(
1267 if (!Res.isInvalid() && Res.isUnset()) {
1274 if (!Res.isInvalid() && Tok.is(tok::less))
1275 checkPotentialAngleBracket(Res);
1283 Res = Actions.ActOnCharacterConstant(Tok, /*UDLScope*/getCurScope());
1293 Res = Actions.ActOnPredefinedExpr(Tok.getLocation(), SavedKind);
1301 Res = ParseStringLiteralExpression(true);
1304 Res = ParseGenericSelectionExpression();
1307 Res = ParseAvailabilityCheckExpr(Tok.getLocation());
1323 Res = Actions.ActOnGNUNullExpr(ConsumeToken());
1342 Res = ParseCastExpression(getLangOpts().CPlusPlus ?
1349 assert(Res.isInvalid());
1353 if (!Res.isInvalid()) {
1354 Expr *Arg = Res.get();
1355 Res = Actions.ActOnUnaryOp(getCurScope(), SavedTok.getLocation(),
1357 if (Res.isInvalid())
1358 Res = Actions.CreateRecoveryExpr(SavedTok.getLocation(),
1361 return Res;
1369 Res = ParseCastExpression(AnyCastExpr, true);
1370 if (!Res.isInvalid()) {
1371 Expr *Arg = Res.get();
1372 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Arg);
1373 if (Res.isInvalid())
1374 Res = Actions.CreateRecoveryExpr(Tok.getLocation(), Arg->getEndLoc(),
1377 return Res;
1391 Res = ParseCastExpression(AnyCastExpr);
1392 if (!Res.isInvalid()) {
1393 Expr *Arg = Res.get();
1394 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Arg);
1395 if (Res.isInvalid())
1396 Res = Actions.CreateRecoveryExpr(SavedLoc, Arg->getEndLoc(), Arg);
1398 return Res;
1405 Res = ParseCastExpression(AnyCastExpr);
1406 if (!Res.isInvalid())
1407 Res = Actions.ActOnCoawaitExpr(getCurScope(), CoawaitLoc, Res.get());
1408 return Res;
1417 Res = ParseCastExpression(AnyCastExpr);
1418 if (!Res.isInvalid())
1419 Res = Actions.ActOnUnaryOp(getCurScope(), SavedLoc, SavedKind, Res.get());
1420 return Res;
1437 Res = ParseUnaryExprOrTypeTraitExpression();
1452 Res = Actions.ActOnAddrLabel(AmpAmpLoc, Tok.getLocation(), LD);
1464 Res = ParseCXXCasts();
1469 Res = ParseBuiltinBitCast();
1474 Res = ParseCXXTypeid();
1479 Res = ParseCXXUuidof();
1482 Res = ParseCXXThis();
1485 Res = ParseUniqueStableNameExpression();
1508 Res = ParseObjCMessageExpressionBody(SourceLocation(), SourceLocation(),
1577 Res = ParseCXXTypeConstructExpression(DS);
1610 Res = ParseCXXIdExpression(isAddressOfOperand);
1632 Res = ParseCXXIdExpression(isAddressOfOperand);
1650 Res = ParseCXXNewExpression(true, CCLoc);
1657 Res = ParseCXXDeleteExpression(true, CCLoc);
1670 Res = ParseCXXNewExpression(false, Tok.getLocation());
1677 Res = ParseCXXDeleteExpression(false, Tok.getLocation());
1682 Res = ParseRequiresExpression();
1700 Res = ParseExpression();
1704 if (!Res.isInvalid())
1705 Res = Actions.ActOnNoexceptExpr(KeyLoc, T.getOpenLocation(), Res.get(),
1714 Res = ParseTypeTrait();
1721 Res = ParseArrayTypeTrait();
1728 Res = ParseExpressionTrait();
1738 Res = ParseBlockLiteralExpression();
1754 Res = TryParseLambdaExpression();
1755 if (!Res.isInvalid() && !Res.get()) {
1760 Res = ParseObjCMessageExpression();
1764 Res = ParseLambdaExpression();
1768 Res = ParseObjCMessageExpression();
1777 // Check to see whether Res is a function designator only. If it is and we
1784 return Res;
1789 if (Res.isInvalid())
1790 return Res;
1800 return Res;
1808 return Res;
1815 << Tok.getKind() << Res.get()->getSourceRange()
1816 << FixItHint::CreateInsertion(Res.get()->getBeginLoc(), "(")
1823 Res = ParsePostfixExpressionSuffix(Res);
1825 if (Expr *PostfixExpr = Res.get()) {
1834 return Res;
2505 ExprResult Res;
2539 Res = ExprError();
2541 Res = Actions.ActOnVAArg(StartLoc, Expr.get(), Ty.get(), ConsumeParen());
2598 Res = ParseExpression();
2599 if (Res.isInvalid()) {
2601 return Res;
2603 Comps.back().U.E = Res.get();
2610 Res = ExprError();
2612 Res = ExprError();
2615 Res = Actions.ActOnBuiltinOffsetOf(getCurScope(), StartLoc, TypeLoc,
2654 Res = Actions.ActOnChooseExpr(StartLoc, Cond.get(), Expr1.get(),
2683 Res = Actions.ActOnAsTypeExpr(Expr.get(), DestTy.get(), StartLoc,
2712 Res = Actions.ActOnConvertVectorExpr(Expr.get(), DestTy.get(), StartLoc,
2740 Res = Actions.ActOnSourceLocExpr(Kind, StartLoc, ConsumeParen());
2745 if (Res.isInvalid())
2750 return ParsePostfixExpressionSuffix(Res.get());