Lines Matching refs:ObjCMethodDecl
148 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod()
241 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc, in getNSNumberFactoryMethod()
282 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod()
287 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel, in getNSNumberFactoryMethod()
292 /*isDefined=*/false, ObjCMethodDecl::Required, in getNSNumberFactoryMethod()
343 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
504 ObjCMethodDecl *BoxingMethod = nullptr; in BuildObjCBoxedExpr()
537 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr()
543 /*isDefined=*/false, ObjCMethodDecl::Required, in BuildObjCBoxedExpr()
649 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr()
662 ObjCMethodDecl::Required, in BuildObjCBoxedExpr()
743 ObjCMethodDecl *getterMethod, in BuildObjCSubscriptExpression()
744 ObjCMethodDecl *setterMethod) { in BuildObjCSubscriptExpression()
787 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); in BuildObjCArrayLiteral()
790 Method = ObjCMethodDecl::Create( in BuildObjCArrayLiteral()
796 ObjCMethodDecl::Required, false); in BuildObjCArrayLiteral()
893 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel); in BuildObjCDictionaryLiteral()
895 Method = ObjCMethodDecl::Create(Context, in BuildObjCDictionaryLiteral()
903 ObjCMethodDecl::Required, in BuildObjCDictionaryLiteral()
1106 ObjCMethodDecl *Method, in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1111 ObjCMethodDecl *MatchingMethodDecl = M->getMethod(); in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1134 ObjCMethodDecl *Method, in DiagnoseMismatchedSelectors()
1164 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel, in ParseObjCSelectorExpression()
1170 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) { in ParseObjCSelectorExpression()
1185 Method->getImplementationControl() != ObjCMethodDecl::Optional && in ParseObjCSelectorExpression()
1245 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) { in tryCaptureObjCSelf()
1251 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(DC); in tryCaptureObjCSelf()
1286 ObjCMethodDecl *Method, in getBaseMessageSendResultType()
1325 if (ObjCMethodDecl *CurMethod = S.getCurMethodDecl()) in getBaseMessageSendResultType()
1351 ObjCMethodDecl *Method, in getMessageSendResultType()
1372 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>( in getMessageSendResultType()
1445 static const ObjCMethodDecl *
1446 findExplicitInstancetypeDeclarer(const ObjCMethodDecl *MD, in findExplicitInstancetypeDeclarer()
1463 const ObjCMethodDecl *ifaceMD = in findExplicitInstancetypeDeclarer()
1468 SmallVector<const ObjCMethodDecl *, 4> overrides; in findExplicitInstancetypeDeclarer()
1471 if (const ObjCMethodDecl *result = in findExplicitInstancetypeDeclarer()
1482 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext); in EmitRelatedResultTypeNoteForReturn()
1489 if (const ObjCMethodDecl *overridden = in EmitRelatedResultTypeNoteForReturn()
1514 const ObjCMethodDecl *Method = MsgSend->getMethodDecl(); in EmitRelatedResultTypeNote()
1536 Selector Sel, ArrayRef<SourceLocation> SelectorLocs, ObjCMethodDecl *Method, in CheckMessageArgumentTypes()
1571 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes()
1742 ObjCMethodDecl *Method = in isSelfExpr()
1743 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor()); in isSelfExpr()
1747 bool Sema::isSelfExpr(Expr *receiver, const ObjCMethodDecl *method) { in isSelfExpr()
1758 ObjCMethodDecl *Sema::LookupMethodInObjectType(Selector sel, QualType type, in LookupMethodInObjectType()
1763 if (ObjCMethodDecl *method = iface->lookupMethod(sel, isInstance)) in LookupMethodInObjectType()
1768 if (ObjCMethodDecl *method = iface->lookupPrivateMethod(sel, isInstance)) in LookupMethodInObjectType()
1774 if (ObjCMethodDecl *method = I->lookupMethod(sel, isInstance)) in LookupMethodInObjectType()
1782 ObjCMethodDecl *Sema::LookupMethodInQualifiedType(Selector Sel, in LookupMethodInQualifiedType()
1786 ObjCMethodDecl *MD = nullptr; in LookupMethodInQualifiedType()
1860 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel); in HandleExprPropertyRefExpr()
1880 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel); in HandleExprPropertyRefExpr()
1995 if (ObjCMethodDecl *CurMethod = tryCaptureObjCSelf(receiverNameLoc)) { in ActOnClassPropertyRefExpr()
2042 ObjCMethodDecl *Getter = IFace->lookupClassMethod(GetterSel); in ActOnClassPropertyRefExpr()
2056 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in ActOnClassPropertyRefExpr()
2088 ObjCInterfaceOrSuperCCC(ObjCMethodDecl *Method) { in ObjCInterfaceOrSuperCCC()
2125 if (ObjCMethodDecl *Method = getCurMethodDecl()) { in getObjCMessageKind()
2208 ObjCMethodDecl *Method = tryCaptureObjCSelf(SuperLoc); in ActOnSuperMessage()
2255 ObjCMethodDecl *Method, in BuildClassMessageImplicit()
2312 const ObjCMethodDecl *Method, in checkFoundationAPI()
2323 ObjCMethodDecl *ImpliedMethod; in checkFoundationAPI()
2362 ObjCMethodDecl *Method, in DiagnoseCStringFormatDirectiveInObjCAPI()
2429 ObjCMethodDecl *Method, in BuildClassMessage()
2530 else if (ObjCMethodDecl *CurMeth = getCurMethodDecl()) { in BuildClassMessage()
2594 ObjCMethodDecl *Method, in BuildInstanceMessageImplicit()
2602 static bool isMethodDeclaredInRootProtocol(Sema &S, const ObjCMethodDecl *M) { in isMethodDeclaredInRootProtocol()
2652 ObjCMethodDecl *Method, in BuildInstanceMessage()
2767 SmallVector<ObjCMethodDecl*, 4> Methods; in BuildInstanceMessage()
2776 if (ObjCMethodDecl *BestMethod = in BuildInstanceMessage()
2807 if (ObjCMethodDecl *CurMeth = getCurMethodDecl()) { in BuildInstanceMessage()
2828 SmallVector<ObjCMethodDecl*, 4> Methods; in BuildInstanceMessage()
2847 if (ObjCMethodDecl *BestMethod = in BuildInstanceMessage()
2916 SmallVector<ObjCMethodDecl*, 4> Methods; in BuildInstanceMessage()
2925 if (ObjCMethodDecl *BestMethod = in BuildInstanceMessage()
2976 const ObjCMethodDecl *InitMethod = nullptr; in BuildInstanceMessage()
3052 ObjCMethodDecl *SelMethod = in BuildInstanceMessage()
3143 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext); in BuildInstanceMessage()
3475 ObjCMethodDecl *method; in VisitObjCPropertyRefExpr()
3483 ACCResult checkCallToMethod(ObjCMethodDecl *method) { in checkCallToMethod()
3973 if (ObjCMethodDecl *Getter = PRE->getImplicitPropertyGetter()) in CheckObjCBridgeRelatedCast()
4006 ObjCMethodDecl *&ClassMethod, in checkObjCBridgeRelatedComponents()
4007 ObjCMethodDecl *&InstanceMethod, in checkObjCBridgeRelatedComponents()
4088 ObjCMethodDecl *ClassMethod = nullptr; in CheckObjCBridgeRelatedConversions()
4089 ObjCMethodDecl *InstanceMethod = nullptr; in CheckObjCBridgeRelatedConversions()