Lines Matching refs:Sel

151                                  Selector Sel, const ObjCMethodDecl *Method) {
154 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
162 << Sel;
192 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind,
228 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel);
233 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel,
248 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method))
657 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount);
658 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel);
662 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo,
688 if (!validateBoxingMethod(*this, SR.getBegin(), NSArrayDecl, Sel, Method))
697 << Sel;
708 << Sel;
772 Selector Sel = NSAPIObj->getNSDictionarySelector(
774 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel);
777 SourceLocation(), SourceLocation(), Sel,
814 if (!validateBoxingMethod(*this, SR.getBegin(), NSDictionaryDecl, Sel,
824 << Sel;
858 << Sel;
871 << Sel;
1033 ExprResult Sema::ParseObjCSelectorExpression(Selector Sel,
1039 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel,
1042 Method = LookupFactoryMethodInGlobalPool(Sel,
1045 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) {
1050 << Sel << MatchedSel
1054 Diag(SelLoc, diag::warn_undeclared_selector) << Sel;
1063 = ReferencedSelectors.find(Sel);
1065 ReferencedSelectors.insert(std::make_pair(Sel, AtLoc));
1071 switch (Sel.getMethodFamily()) {
1078 Sel << SourceRange(LParenLoc, RParenLoc);
1094 return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc);
1274 Selector Sel,
1311 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType);
1321 << Sel<< isClassMessage << MatchedSel
1326 << Sel << isClassMessage << SourceRange(SelectorLocs.front(),
1351 unsigned NumNamedArgs = Sel.getNumArgs();
1354 if (Method->param_size() > Sel.getNumArgs())
1484 ObjCMethodDecl *Sema::LookupMethodInQualifiedType(Selector Sel,
1490 if ((MD = PROTO->lookupMethod(Sel, Instance))) {
1618 Selector Sel = PP.getSelectorTable().getNullarySelector(Member);
1619 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel);
1623 Getter = LookupMethodInQualifiedType(Sel, OPT, true);
1627 Getter = IFace->lookupPrivateMethod(Sel);
1758 Selector Sel = PP.getSelectorTable().getNullarySelector(&propertyName);
1759 ObjCMethodDecl *Getter = IFace->lookupClassMethod(Sel);
1763 Getter = IFace->lookupPrivateClassMethod(Sel);
1925 Selector Sel,
1954 if (Method->getSelector() == Sel)
1963 Sel, /*Method=*/nullptr,
1971 SuperLoc, Sel, /*Method=*/nullptr,
1979 Selector Sel,
1988 Sel, Method, Loc, Loc, Loc, Args,
2055 /// \param Sel The selector to which the message is being sent.
2068 Selector Sel,
2095 Context, ReceiverType, VK_RValue, LBracLoc, ReceiverTypeInfo, Sel,
2123 Method = LookupFactoryMethodInGlobalPool(Sel,
2130 Method = Class->lookupClassMethod(Sel);
2134 Method = Class->lookupPrivateClassMethod(Sel);
2147 Sel, SelectorLocs,
2163 ReceiverType, Sel, SelectorLocs,
2168 ReceiverTypeInfo, Sel, SelectorLocs,
2179 // is obtained from Sel.getNumArgs().
2182 Selector Sel,
2197 /*SuperLoc=*/SourceLocation(), Sel,
2205 Selector Sel,
2210 Sel, Method, Loc, Loc, Loc, Args,
2232 /// \param Sel The selector to which the message is being sent.
2245 Selector Sel,
2288 Context, Context.DependentTy, VK_RValue, LBracLoc, Receiver, Sel,
2350 Method = LookupInstanceMethodInGlobalPool(Sel,
2354 Method = LookupFactoryMethodInGlobalPool(Sel,
2365 Method = LookupMethodInQualifiedType(Sel, QClassTy, false);
2367 Method = LookupMethodInQualifiedType(Sel, QClassTy, true);
2371 << Method->getSelector() << Sel;
2380 Method = ClassDecl->lookupClassMethod(Sel);
2383 Method = ClassDecl->lookupPrivateClassMethod(Sel);
2389 // If not messaging 'self', look for any factory method named 'Sel'.
2391 Method = LookupFactoryMethodInGlobalPool(Sel,
2397 Method = LookupInstanceMethodInGlobalPool(Sel,
2405 << Sel << SourceRange(LBracLoc, RBracLoc);
2420 Method = LookupMethodInQualifiedType(Sel, QIdTy, true);
2422 Method = LookupMethodInQualifiedType(Sel, QIdTy, false);
2447 Method = ClassDecl->lookupInstanceMethod(Sel);
2452 Method = LookupMethodInQualifiedType(Sel, OCIType, true);
2456 Method = ClassDecl->lookupPrivateMethod(Sel);
2460 << OCIType->getPointeeType() << Sel << RecRange
2470 Method = LookupInstanceMethodInGlobalPool(Sel,
2475 << Sel << RecRange;
2505 ID->isDesignatedInitializer(Sel)) {
2544 Sel, SelectorLocs, Method,
2558 (Method ? Method->getMethodFamily() : Sel.getMethodFamily());
2579 << Sel << RecRange;
2638 ReceiverType, Sel, SelectorLocs, Method,
2643 Receiver, Sel, SelectorLocs, Method,
2682 if (!IsWeak && Sel.isUnarySelector())
2697 Selector Sel = OSE->getSelector();
2700 = S.ReferencedSelectors.find(Sel);
2708 // is obtained from Sel.getNumArgs().
2711 Selector Sel,
2730 if (Sel == RespondsToSelectorSel)
2734 /*SuperLoc=*/SourceLocation(), Sel,
3544 Selector Sel = Context.Selectors.getUnarySelector(CMId);
3545 ClassMethod = RelatedClass->lookupMethod(Sel, false);
3548 << SrcType << DestType << Sel << false;
3556 Selector Sel = Context.Selectors.getNullarySelector(IMId);
3557 InstanceMethod = RelatedClass->lookupMethod(Sel, true);
3560 << SrcType << DestType << Sel << true;