Lines Matching defs:Receiver

1522 QualType SemaObjC::getMessageSendResultType(const Expr *Receiver,
1539 if (Receiver && Receiver->isObjCSelfExpr()) {
1546 cast<DeclRefExpr>(Receiver->IgnoreParenImpCasts())->getDecl())
1714 const Expr *Receiver, QualType ReceiverType, MultiExprArg Args,
1795 ReturnType = getMessageSendResultType(Receiver, ReceiverType, Method,
2685 if (CheckMessageArgumentTypes(/*Receiver=*/nullptr, ReceiverType,
2754 ExprResult SemaObjC::ActOnClassMessage(Scope *S, ParsedType Receiver,
2762 SemaRef.GetTypeFromParser(Receiver, &ReceiverTypeInfo);
2776 Expr *Receiver, QualType ReceiverType, SourceLocation Loc, Selector Sel,
2778 return BuildInstanceMessage(Receiver, ReceiverType,
2779 /*SuperLoc=*/!Receiver ? Loc : SourceLocation(),
2808 /// \param Receiver The expression that computes the object that will
2814 /// message. When a \p Receiver expression is provided, this is the
2832 Expr *Receiver, QualType ReceiverType, SourceLocation SuperLoc,
2836 assert((Receiver || SuperLoc.isValid()) && "If the Receiver is null, the "
2842 SourceLocation Loc = SuperLoc.isValid() ? SuperLoc : Receiver->getBeginLoc();
2844 SuperLoc.isValid()? SuperLoc : Receiver->getSourceRange();
2860 if (Receiver) {
2861 if (Receiver->hasPlaceholderType()) {
2863 if (Receiver->getType() == Context.UnknownAnyTy)
2865 SemaRef.forceUnknownAnyToType(Receiver, Context.getObjCIdType());
2867 Result = SemaRef.CheckPlaceholderExpr(Receiver);
2869 Receiver = Result.get();
2872 if (Receiver->isTypeDependent()) {
2879 Context, Context.DependentTy, VK_PRValue, LBracLoc, Receiver, Sel,
2886 ExprResult Result = SemaRef.DefaultFunctionArrayLvalueConversion(Receiver);
2889 Receiver = Result.get();
2890 ReceiverType = Receiver->getType();
2905 Receiver = SemaRef
2906 .ImpCastExprToType(Receiver, Context.getObjCIdType(),
2911 bool IsNull = Receiver->isNullPointerConstant(Context,
2914 Receiver =
2915 SemaRef.ImpCastExprToType(Receiver, Context.getObjCIdType(), Kind)
2918 ReceiverType = Receiver->getType();
2921 if (SemaRef.RequireCompleteType(Loc, Receiver->getType(),
2926 SemaRef.PerformContextuallyConvertToObjCPointer(Receiver);
2928 Receiver = result.get();
2929 ReceiverType = Receiver->getType();
2945 (Receiver && Context.isObjCNSObjectType(Receiver->getType()))) {
3003 if (!Receiver || !isSelfExpr(Receiver)) {
3066 Diag(Receiver ? Receiver->getBeginLoc() : SuperLoc,
3088 if (!Method && (!Receiver || !isSelfExpr(Receiver))) {
3136 Diag(Receiver->getExprLoc(),
3146 !(Receiver->isObjCSelfExpr() && getLangOpts().ObjCAutoRefCount)) {
3148 auto Builder = Diag(Receiver->getExprLoc(),
3150 if (Receiver->isObjCSelfExpr()) {
3174 Diag(Receiver->getExprLoc(), diag::warn_messaging_unqualified_id);
3179 (SuperLoc.isValid() || isSelfExpr(Receiver))) {
3213 (SuperLoc.isValid() || isSelfExpr(Receiver))) {
3228 if (CheckMessageArgumentTypes(Receiver, ReceiverType,
3332 Context, ReturnType, VK, LBracLoc, Receiver, Sel, SelectorLocs, Method,
3343 if (Receiver && isSelfExpr(Receiver)) {
3361 (SuperLoc.isValid() || isSelfExpr(Receiver))) {
3412 ExprResult SemaObjC::ActOnInstanceMessage(Scope *S, Expr *Receiver,
3418 if (!Receiver)
3422 if (isa<ParenListExpr>(Receiver)) {
3424 SemaRef.MaybeConvertParenListExprToParenExpr(S, Receiver);
3426 Receiver = Result.get();
3436 return BuildInstanceMessage(Receiver, Receiver->getType(),