Lines Matching refs:RefExpr
272 ObjCPropertyRefExpr *RefExpr; member in __anonb581425c0111::ObjCPropertyOpBuilder
284 RefExpr(refExpr), SyntacticRefExpr(nullptr), in ObjCPropertyOpBuilder()
312 ObjCSubscriptRefExpr *RefExpr; member in __anonb581425c0111::ObjCSubscriptOpBuilder
324 RefExpr(refExpr), InstanceBase(nullptr), InstanceKey(nullptr), in ObjCSubscriptOpBuilder()
342 MSPropertyRefExpr *RefExpr; member in __anonb581425c0111::MSPropertyOpBuilder
351 RefExpr(refExpr), InstanceBase(nullptr) {} in MSPropertyOpBuilder()
355 RefExpr = getBaseMSProperty(refExpr); in MSPropertyOpBuilder()
591 if (RefExpr->isExplicitProperty()) { in isWeakProperty()
592 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
610 if (RefExpr->isImplicitProperty()) { in findGetter()
611 if ((Getter = RefExpr->getImplicitPropertyGetter())) { in findGetter()
617 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter(); in findGetter()
629 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
630 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr); in findGetter()
640 if (RefExpr->isImplicitProperty()) { in findSetter()
641 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) { in findSetter()
646 const IdentifierInfo *getterName = RefExpr->getImplicitPropertyGetter() in findSetter()
658 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
663 LookupMethodInReceiverType(S, SetterSelector, RefExpr)) { in findSetter()
678 S.Diag(RefExpr->getExprLoc(), diag::err_property_setter_ambiguous_use) in findSetter()
700 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
701 S.Diag(RefExpr->getLocation(), in DiagnoseUnsupportedPropertyUse()
714 if (RefExpr->isObjectReceiver()) { in rebuildAndCaptureObject()
715 InstanceReceiver = capture(RefExpr->getBase()); in rebuildAndCaptureObject()
739 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildGet()
744 if ((Getter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildGet()
745 RefExpr->isObjectReceiver()) { in buildGet()
746 assert(InstanceReceiver || RefExpr->isSuperReceiver()); in buildGet()
752 receiverType, RefExpr->isSuperReceiver(), GenericLoc, in buildGet()
772 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildSet()
805 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildSet()
806 RefExpr->isObjectReceiver()) { in buildSet()
812 receiverType, RefExpr->isSuperReceiver(), GenericLoc, SetterSelector, in buildSet()
831 if (RefExpr->isImplicitProperty() && !RefExpr->getImplicitPropertyGetter()) { in buildRValueOperation()
832 S.Diag(RefExpr->getLocation(), diag::err_getter_not_found) in buildRValueOperation()
833 << RefExpr->getSourceRange(); in buildRValueOperation()
840 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType()) in buildRValueOperation()
841 S.ObjC().DiagnosePropertyAccessorMismatch(RefExpr->getExplicitProperty(), in buildRValueOperation()
842 Getter, RefExpr->getLocation()); in buildRValueOperation()
846 if (RefExpr->isExplicitProperty() && result.get()->isPRValue()) { in buildRValueOperation()
847 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildRValueOperation()
848 QualType propType = RefExpr->getExplicitProperty() in buildRValueOperation()
859 RefExpr->getLocation())) in buildRValueOperation()
860 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
909 << unsigned(RefExpr->isImplicitProperty()) in buildAssignmentOperation()
953 << unsigned(RefExpr->isImplicitProperty()) in buildIncDecOperation()
964 assert(RefExpr->isImplicitProperty()); in buildIncDecOperation()
1032 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1033 InstanceKey = capture(RefExpr->getKeyExpr()); in rebuildAndCaptureObject()
1074 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter()
1083 S.ObjC().CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexGetter()
1087 RefExpr->getKeyExpr()); in findAtIndexGetter()
1144 AtIndexGetterSelector, RefExpr->getSourceRange(), true); in findAtIndexGetter()
1151 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1160 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1173 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter()
1183 S.ObjC().CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexSetter()
1187 RefExpr->getKeyExpr()); in findAtIndexSetter()
1257 AtIndexSetterSelector, RefExpr->getSourceRange(), true); in findAtIndexSetter()
1264 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1272 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1284 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1287 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1370 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1387 if (!RefExpr->getPropertyDecl()->hasGetter()) { in buildGet()
1388 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildGet()
1389 << 0 /* getter */ << RefExpr->getPropertyDecl(); in buildGet()
1394 const IdentifierInfo *II = RefExpr->getPropertyDecl()->getGetterId(); in buildGet()
1395 GetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildGet()
1397 SS.Adopt(RefExpr->getQualifierLoc()); in buildGet()
1400 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildGet()
1403 S.Diag(RefExpr->getMemberLoc(), in buildGet()
1405 << RefExpr->getPropertyDecl(); in buildGet()
1410 RefExpr->getSourceRange().getBegin(), CallArgs, in buildGet()
1411 RefExpr->getSourceRange().getEnd()); in buildGet()
1416 if (!RefExpr->getPropertyDecl()->hasSetter()) { in buildSet()
1417 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildSet()
1418 << 1 /* setter */ << RefExpr->getPropertyDecl(); in buildSet()
1423 const IdentifierInfo *II = RefExpr->getPropertyDecl()->getSetterId(); in buildSet()
1424 SetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildSet()
1426 SS.Adopt(RefExpr->getQualifierLoc()); in buildSet()
1429 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildSet()
1432 S.Diag(RefExpr->getMemberLoc(), in buildSet()
1434 << RefExpr->getPropertyDecl(); in buildSet()
1442 RefExpr->getSourceRange().getBegin(), ArgExprs, in buildSet()
1465 } else if (MSPropertySubscriptExpr *RefExpr = in checkRValue() local
1467 MSPropertyOpBuilder Builder(SemaRef, RefExpr, true); in checkRValue()
1496 } else if (MSPropertySubscriptExpr *RefExpr in checkIncDec() local
1498 MSPropertyOpBuilder Builder(SemaRef, RefExpr, false); in checkIncDec()
1535 } else if (MSPropertySubscriptExpr *RefExpr in checkAssignment() local
1537 MSPropertyOpBuilder Builder(SemaRef, RefExpr, IsSimpleAssign); in checkAssignment()