Lines Matching refs:RefExpr

266     ObjCPropertyRefExpr *RefExpr;  member in __anon83f8f2be0111::ObjCPropertyOpBuilder
277 PseudoOpBuilder(S, refExpr->getLocation()), RefExpr(refExpr), in ObjCPropertyOpBuilder()
306 ObjCSubscriptRefExpr *RefExpr; member in __anon83f8f2be0111::ObjCSubscriptOpBuilder
318 RefExpr(refExpr), in ObjCSubscriptOpBuilder()
337 MSPropertyRefExpr *RefExpr; member in __anon83f8f2be0111::MSPropertyOpBuilder
346 RefExpr(refExpr), InstanceBase(nullptr) {} in MSPropertyOpBuilder()
350 RefExpr = getBaseMSProperty(refExpr); in MSPropertyOpBuilder()
578 if (RefExpr->isExplicitProperty()) { in isWeakProperty()
579 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
597 if (RefExpr->isImplicitProperty()) { in findGetter()
598 if ((Getter = RefExpr->getImplicitPropertyGetter())) { in findGetter()
604 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter(); in findGetter()
616 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
617 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr); in findGetter()
627 if (RefExpr->isImplicitProperty()) { in findSetter()
628 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) { in findSetter()
634 RefExpr->getImplicitPropertyGetter()->getSelector() in findSetter()
645 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
650 LookupMethodInReceiverType(S, SetterSelector, RefExpr)) { in findSetter()
663 S.Diag(RefExpr->getExprLoc(), diag::error_property_setter_ambiguous_use) in findSetter()
685 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
686 S.Diag(RefExpr->getLocation(), in DiagnoseUnsupportedPropertyUse()
699 if (RefExpr->isObjectReceiver()) { in rebuildAndCaptureObject()
700 InstanceReceiver = capture(RefExpr->getBase()); in rebuildAndCaptureObject()
724 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildGet()
729 if ((Getter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildGet()
730 RefExpr->isObjectReceiver()) { in buildGet()
731 assert(InstanceReceiver || RefExpr->isSuperReceiver()); in buildGet()
736 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildGet()
757 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildSet()
789 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildSet()
790 RefExpr->isObjectReceiver()) { in buildSet()
795 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildSet()
816 if (RefExpr->isImplicitProperty() && !RefExpr->getImplicitPropertyGetter()) { in buildRValueOperation()
817 S.Diag(RefExpr->getLocation(), diag::err_getter_not_found) in buildRValueOperation()
818 << RefExpr->getSourceRange(); in buildRValueOperation()
825 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType()) in buildRValueOperation()
826 S.DiagnosePropertyAccessorMismatch(RefExpr->getExplicitProperty(), in buildRValueOperation()
827 Getter, RefExpr->getLocation()); in buildRValueOperation()
831 if (RefExpr->isExplicitProperty() && result.get()->isRValue()) { in buildRValueOperation()
832 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildRValueOperation()
833 QualType propType = RefExpr->getExplicitProperty() in buildRValueOperation()
845 if (!S.Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, RefExpr->getLocation())) in buildRValueOperation()
846 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
896 << unsigned(RefExpr->isImplicitProperty()) in buildAssignmentOperation()
940 << unsigned(RefExpr->isImplicitProperty()) in buildIncDecOperation()
951 assert(RefExpr->isImplicitProperty()); in buildIncDecOperation()
1019 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1020 InstanceKey = capture(RefExpr->getKeyExpr()); in rebuildAndCaptureObject()
1135 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter()
1144 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexGetter()
1148 RefExpr->getKeyExpr()); in findAtIndexGetter()
1211 RefExpr->getSourceRange(), in findAtIndexGetter()
1219 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1228 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1241 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter()
1251 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexSetter()
1255 RefExpr->getKeyExpr()); in findAtIndexSetter()
1330 RefExpr->getSourceRange(), in findAtIndexSetter()
1338 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1346 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1358 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1361 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1447 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1464 if (!RefExpr->getPropertyDecl()->hasGetter()) { in buildGet()
1465 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildGet()
1466 << 0 /* getter */ << RefExpr->getPropertyDecl(); in buildGet()
1471 IdentifierInfo *II = RefExpr->getPropertyDecl()->getGetterId(); in buildGet()
1472 GetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildGet()
1474 SS.Adopt(RefExpr->getQualifierLoc()); in buildGet()
1477 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildGet()
1480 S.Diag(RefExpr->getMemberLoc(), in buildGet()
1482 << RefExpr->getPropertyDecl(); in buildGet()
1487 RefExpr->getSourceRange().getBegin(), CallArgs, in buildGet()
1488 RefExpr->getSourceRange().getEnd()); in buildGet()
1493 if (!RefExpr->getPropertyDecl()->hasSetter()) { in buildSet()
1494 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildSet()
1495 << 1 /* setter */ << RefExpr->getPropertyDecl(); in buildSet()
1500 IdentifierInfo *II = RefExpr->getPropertyDecl()->getSetterId(); in buildSet()
1501 SetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildSet()
1503 SS.Adopt(RefExpr->getQualifierLoc()); in buildSet()
1506 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildSet()
1509 S.Diag(RefExpr->getMemberLoc(), in buildSet()
1511 << RefExpr->getPropertyDecl(); in buildSet()
1519 RefExpr->getSourceRange().getBegin(), ArgExprs, in buildSet()
1542 } else if (MSPropertySubscriptExpr *RefExpr = in checkPseudoObjectRValue() local
1544 MSPropertyOpBuilder Builder(*this, RefExpr); in checkPseudoObjectRValue()
1572 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectIncDec() local
1574 MSPropertyOpBuilder Builder(*this, RefExpr); in checkPseudoObjectIncDec()
1609 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectAssignment() local
1611 MSPropertyOpBuilder Builder(*this, RefExpr); in checkPseudoObjectAssignment()