Lines Matching refs:ObjCMethodDecl
150 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod()
243 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc, in getNSNumberFactoryMethod()
284 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod()
289 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel, in getNSNumberFactoryMethod()
295 /*isDefined=*/false, ObjCMethodDecl::Required, in getNSNumberFactoryMethod()
346 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral()
507 ObjCMethodDecl *BoxingMethod = nullptr; in BuildObjCBoxedExpr()
564 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr()
571 /*isDefined=*/false, ObjCMethodDecl::Required, in BuildObjCBoxedExpr()
677 ObjCMethodDecl *M = ObjCMethodDecl::Create( in BuildObjCBoxedExpr()
685 /*isDefined=*/false, ObjCMethodDecl::Required, in BuildObjCBoxedExpr()
766 ObjCMethodDecl *getterMethod, in BuildObjCSubscriptExpression()
767 ObjCMethodDecl *setterMethod) { in BuildObjCSubscriptExpression()
810 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); in BuildObjCArrayLiteral()
813 Method = ObjCMethodDecl::Create( in BuildObjCArrayLiteral()
819 ObjCMethodDecl::Required, false); in BuildObjCArrayLiteral()
972 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel); in BuildObjCDictionaryLiteral()
974 Method = ObjCMethodDecl::Create( in BuildObjCDictionaryLiteral()
981 ObjCMethodDecl::Required, false); in BuildObjCDictionaryLiteral()
1177 ObjCMethodDecl *Method, in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1182 ObjCMethodDecl *MatchingMethodDecl = M->getMethod(); in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1205 ObjCMethodDecl *Method, in DiagnoseMismatchedSelectors()
1229 static ObjCMethodDecl *LookupDirectMethodInMethodList(Sema &S, Selector Sel, in LookupDirectMethodInMethodList()
1235 ObjCMethodDecl *DirectMethod = nullptr; in LookupDirectMethodInMethodList()
1237 ObjCMethodDecl *Method = M->getMethod(); in LookupDirectMethodInMethodList()
1255 static ObjCMethodDecl *LookupDirectMethodInGlobalPool(Sema &S, Selector Sel, in LookupDirectMethodInGlobalPool()
1262 ObjCMethodDecl *DirectInstance = LookupDirectMethodInMethodList( in LookupDirectMethodInGlobalPool()
1264 ObjCMethodDecl *DirectClass = LookupDirectMethodInMethodList( in LookupDirectMethodInGlobalPool()
1270 static ObjCMethodDecl *findMethodInCurrentClass(Sema &S, Selector Sel) { in findMethodInCurrentClass()
1279 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true)) in findMethodInCurrentClass()
1281 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/true)) in findMethodInCurrentClass()
1283 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/false)) in findMethodInCurrentClass()
1285 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/false)) in findMethodInCurrentClass()
1297 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel, in ParseObjCSelectorExpression()
1303 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) { in ParseObjCSelectorExpression()
1319 ObjCMethodDecl *GlobalDirectMethod = in ParseObjCSelectorExpression()
1331 ObjCMethodDecl *LikelyTargetMethod = findMethodInCurrentClass(*this, Sel); in ParseObjCSelectorExpression()
1350 Method->getImplementationControl() != ObjCMethodDecl::Optional && in ParseObjCSelectorExpression()
1413 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) { in tryCaptureObjCSelf()
1419 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(DC); in tryCaptureObjCSelf()
1454 ObjCMethodDecl *Method, in getBaseMessageSendResultType()
1493 if (ObjCMethodDecl *CurMethod = S.getCurMethodDecl()) in getBaseMessageSendResultType()
1519 ObjCMethodDecl *Method, in getMessageSendResultType()
1540 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>( in getMessageSendResultType()
1621 static const ObjCMethodDecl *
1622 findExplicitInstancetypeDeclarer(const ObjCMethodDecl *MD, in findExplicitInstancetypeDeclarer()
1639 const ObjCMethodDecl *ifaceMD = in findExplicitInstancetypeDeclarer()
1644 SmallVector<const ObjCMethodDecl *, 4> overrides; in findExplicitInstancetypeDeclarer()
1647 if (const ObjCMethodDecl *result = in findExplicitInstancetypeDeclarer()
1658 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext); in EmitRelatedResultTypeNoteForReturn()
1665 if (const ObjCMethodDecl *overridden = in EmitRelatedResultTypeNoteForReturn()
1690 const ObjCMethodDecl *Method = MsgSend->getMethodDecl(); in EmitRelatedResultTypeNote()
1712 Selector Sel, ArrayRef<SourceLocation> SelectorLocs, ObjCMethodDecl *Method, in CheckMessageArgumentTypes()
1747 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes()
1918 ObjCMethodDecl *Method = in isSelfExpr()
1919 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor()); in isSelfExpr()
1923 bool Sema::isSelfExpr(Expr *receiver, const ObjCMethodDecl *method) { in isSelfExpr()
1934 ObjCMethodDecl *Sema::LookupMethodInObjectType(Selector sel, QualType type, in LookupMethodInObjectType()
1939 if (ObjCMethodDecl *method = iface->lookupMethod(sel, isInstance)) in LookupMethodInObjectType()
1944 if (ObjCMethodDecl *method = iface->lookupPrivateMethod(sel, isInstance)) in LookupMethodInObjectType()
1950 if (ObjCMethodDecl *method = I->lookupMethod(sel, isInstance)) in LookupMethodInObjectType()
1958 ObjCMethodDecl *Sema::LookupMethodInQualifiedType(Selector Sel, in LookupMethodInQualifiedType()
1962 ObjCMethodDecl *MD = nullptr; in LookupMethodInQualifiedType()
2036 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel); in HandleExprPropertyRefExpr()
2056 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel); in HandleExprPropertyRefExpr()
2171 if (ObjCMethodDecl *CurMethod = tryCaptureObjCSelf(receiverNameLoc)) { in ActOnClassPropertyRefExpr()
2218 ObjCMethodDecl *Getter = IFace->lookupClassMethod(GetterSel); in ActOnClassPropertyRefExpr()
2232 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel); in ActOnClassPropertyRefExpr()
2264 ObjCInterfaceOrSuperCCC(ObjCMethodDecl *Method) { in ObjCInterfaceOrSuperCCC()
2305 if (ObjCMethodDecl *Method = getCurMethodDecl()) { in getObjCMessageKind()
2388 ObjCMethodDecl *Method = tryCaptureObjCSelf(SuperLoc); in ActOnSuperMessage()
2435 ObjCMethodDecl *Method, in BuildClassMessageImplicit()
2492 const ObjCMethodDecl *Method, in checkFoundationAPI()
2503 ObjCMethodDecl *ImpliedMethod; in checkFoundationAPI()
2541 ObjCMethodDecl *Method, in DiagnoseCStringFormatDirectiveInObjCAPI()
2608 ObjCMethodDecl *Method, in BuildClassMessage()
2719 else if (ObjCMethodDecl *CurMeth = getCurMethodDecl()) { in BuildClassMessage()
2781 ObjCMethodDecl *Method, in BuildInstanceMessageImplicit()
2789 static bool isMethodDeclaredInRootProtocol(Sema &S, const ObjCMethodDecl *M) { in isMethodDeclaredInRootProtocol()
2839 ObjCMethodDecl *Method, in BuildInstanceMessage()
2949 SmallVector<ObjCMethodDecl*, 4> Methods; in BuildInstanceMessage()
2958 if (ObjCMethodDecl *BestMethod = in BuildInstanceMessage()
2989 if (ObjCMethodDecl *CurMeth = getCurMethodDecl()) { in BuildInstanceMessage()
3009 SmallVector<ObjCMethodDecl*, 4> Methods; in BuildInstanceMessage()
3028 if (ObjCMethodDecl *BestMethod = in BuildInstanceMessage()
3096 SmallVector<ObjCMethodDecl*, 4> Methods; in BuildInstanceMessage()
3105 if (ObjCMethodDecl *BestMethod = in BuildInstanceMessage()
3198 const ObjCMethodDecl *InitMethod = nullptr; in BuildInstanceMessage()
3274 ObjCMethodDecl *SelMethod = in BuildInstanceMessage()
3363 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext); in BuildInstanceMessage()
3695 ObjCMethodDecl *method; in VisitObjCPropertyRefExpr()
3703 ACCResult checkCallToMethod(ObjCMethodDecl *method) { in checkCallToMethod()
4189 if (ObjCMethodDecl *Getter = PRE->getImplicitPropertyGetter()) in CheckObjCBridgeRelatedCast()
4222 ObjCMethodDecl *&ClassMethod, in checkObjCBridgeRelatedComponents()
4223 ObjCMethodDecl *&InstanceMethod, in checkObjCBridgeRelatedComponents()
4304 ObjCMethodDecl *ClassMethod = nullptr; in CheckObjCBridgeRelatedConversions()
4305 ObjCMethodDecl *InstanceMethod = nullptr; in CheckObjCBridgeRelatedConversions()