Lines Matching refs:RefExpr
259 ObjCPropertyRefExpr *RefExpr; member in __anona186bc5e0111::ObjCPropertyOpBuilder
270 PseudoOpBuilder(S, refExpr->getLocation()), RefExpr(refExpr), in ObjCPropertyOpBuilder()
299 ObjCSubscriptRefExpr *RefExpr; member in __anona186bc5e0111::ObjCSubscriptOpBuilder
311 RefExpr(refExpr), in ObjCSubscriptOpBuilder()
330 MSPropertyRefExpr *RefExpr; member in __anona186bc5e0111::MSPropertyOpBuilder
335 RefExpr(refExpr) {} in MSPropertyOpBuilder()
546 if (RefExpr->isExplicitProperty()) { in isWeakProperty()
547 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
565 if (RefExpr->isImplicitProperty()) { in findGetter()
566 if ((Getter = RefExpr->getImplicitPropertyGetter())) { in findGetter()
572 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter(); in findGetter()
584 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
585 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr); in findGetter()
595 if (RefExpr->isImplicitProperty()) { in findSetter()
596 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) { in findSetter()
602 RefExpr->getImplicitPropertyGetter()->getSelector() in findSetter()
613 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
618 LookupMethodInReceiverType(S, SetterSelector, RefExpr)) { in findSetter()
631 S.Diag(RefExpr->getExprLoc(), diag::error_property_setter_ambiguous_use) in findSetter()
653 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
654 S.Diag(RefExpr->getLocation(), in DiagnoseUnsupportedPropertyUse()
667 if (RefExpr->isObjectReceiver()) { in rebuildAndCaptureObject()
668 InstanceReceiver = capture(RefExpr->getBase()); in rebuildAndCaptureObject()
693 if (RefExpr->isClassReceiver()) { in buildGet()
694 receiverType = S.Context.getObjCInterfaceType(RefExpr->getClassReceiver()); in buildGet()
695 } else if (RefExpr->isSuperReceiver()) { in buildGet()
696 receiverType = RefExpr->getSuperReceiverType(); in buildGet()
705 if ((Getter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildGet()
706 RefExpr->isObjectReceiver()) { in buildGet()
707 assert(InstanceReceiver || RefExpr->isSuperReceiver()); in buildGet()
712 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildGet()
734 if (RefExpr->isClassReceiver()) { in buildSet()
735 receiverType = S.Context.getObjCInterfaceType(RefExpr->getClassReceiver()); in buildSet()
736 } else if (RefExpr->isSuperReceiver()) { in buildSet()
737 receiverType = RefExpr->getSuperReceiverType(); in buildSet()
779 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildSet()
780 RefExpr->isObjectReceiver()) { in buildSet()
785 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildSet()
806 if (RefExpr->isImplicitProperty() && !RefExpr->getImplicitPropertyGetter()) { in buildRValueOperation()
807 S.Diag(RefExpr->getLocation(), diag::err_getter_not_found) in buildRValueOperation()
808 << RefExpr->getSourceRange(); in buildRValueOperation()
815 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType()) in buildRValueOperation()
816 S.DiagnosePropertyAccessorMismatch(RefExpr->getExplicitProperty(), in buildRValueOperation()
817 Getter, RefExpr->getLocation()); in buildRValueOperation()
821 if (RefExpr->isExplicitProperty() && result.get()->isRValue()) { in buildRValueOperation()
822 QualType propType = RefExpr->getExplicitProperty()->getType(); in buildRValueOperation()
833 if (!S.Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, RefExpr->getLocation())) in buildRValueOperation()
834 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
884 << unsigned(RefExpr->isImplicitProperty()) in buildAssignmentOperation()
928 << unsigned(RefExpr->isImplicitProperty()) in buildIncDecOperation()
939 assert(RefExpr->isImplicitProperty()); in buildIncDecOperation()
1007 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1008 InstanceKey = capture(RefExpr->getKeyExpr()); in rebuildAndCaptureObject()
1115 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter()
1127 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexGetter()
1131 RefExpr->getKeyExpr()); in findAtIndexGetter()
1194 RefExpr->getSourceRange(), in findAtIndexGetter()
1202 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1211 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1224 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter()
1237 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexSetter()
1241 RefExpr->getKeyExpr()); in findAtIndexSetter()
1316 RefExpr->getSourceRange(), in findAtIndexSetter()
1324 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1332 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1344 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1347 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1422 Expr *NewBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1431 if (!RefExpr->getPropertyDecl()->hasGetter()) { in buildGet()
1432 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildGet()
1433 << 0 /* getter */ << RefExpr->getPropertyDecl(); in buildGet()
1438 IdentifierInfo *II = RefExpr->getPropertyDecl()->getGetterId(); in buildGet()
1439 GetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildGet()
1441 SS.Adopt(RefExpr->getQualifierLoc()); in buildGet()
1443 S.getCurScope(), RefExpr->getBaseExpr(), SourceLocation(), in buildGet()
1444 RefExpr->isArrow() ? tok::arrow : tok::period, SS, SourceLocation(), in buildGet()
1447 S.Diag(RefExpr->getMemberLoc(), in buildGet()
1449 << RefExpr->getPropertyDecl(); in buildGet()
1455 RefExpr->getSourceRange().getBegin(), ArgExprs, in buildGet()
1456 RefExpr->getSourceRange().getEnd()); in buildGet()
1461 if (!RefExpr->getPropertyDecl()->hasSetter()) { in buildSet()
1462 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildSet()
1463 << 1 /* setter */ << RefExpr->getPropertyDecl(); in buildSet()
1468 IdentifierInfo *II = RefExpr->getPropertyDecl()->getSetterId(); in buildSet()
1469 SetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildSet()
1471 SS.Adopt(RefExpr->getQualifierLoc()); in buildSet()
1473 S.getCurScope(), RefExpr->getBaseExpr(), SourceLocation(), in buildSet()
1474 RefExpr->isArrow() ? tok::arrow : tok::period, SS, SourceLocation(), in buildSet()
1477 S.Diag(RefExpr->getMemberLoc(), in buildSet()
1479 << RefExpr->getPropertyDecl(); in buildSet()
1486 RefExpr->getSourceRange().getBegin(), ArgExprs, in buildSet()