Lines Matching defs:Sel

155                                  Selector Sel, const ObjCMethodDecl *Method) {
158 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
166 << Sel;
268 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind,
290 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel);
295 CX, SourceLocation(), SourceLocation(), Sel, S.NSNumberPointer,
310 if (!validateBoxingMethod(S.SemaRef, Loc, S.NSNumberDecl, Sel, Method))
817 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount);
818 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel);
822 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo,
848 if (!validateBoxingMethod(SemaRef, Loc, NSArrayDecl, Sel, Method))
857 << Sel;
868 << Sel;
977 Selector Sel = NSAPIObj->getNSDictionarySelector(
979 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel);
982 Context, SourceLocation(), SourceLocation(), Sel, IdT,
1017 if (!validateBoxingMethod(SemaRef, SR.getBegin(), NSDictionaryDecl, Sel,
1027 << Sel;
1061 << Sel;
1074 << Sel;
1239 static ObjCMethodDecl *LookupDirectMethodInMethodList(Sema &S, Selector Sel,
1243 (void)Sel;
1250 assert(Method->getSelector() == Sel && "Method with wrong selector in method list");
1265 static ObjCMethodDecl *LookupDirectMethodInGlobalPool(Sema &S, Selector Sel,
1268 auto Iter = S.ObjC().MethodPool.find(Sel);
1273 S, Sel, Iter->second.first, onlyDirect, anyDirect);
1275 S, Sel, Iter->second.second, onlyDirect, anyDirect);
1280 static ObjCMethodDecl *findMethodInCurrentClass(Sema &S, Selector Sel) {
1288 // whether Sel is potentially direct in this context.
1289 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true))
1291 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/true))
1293 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/false))
1295 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/false))
1301 ExprResult SemaObjC::ParseObjCSelectorExpression(Selector Sel,
1308 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel,
1311 Method = LookupFactoryMethodInGlobalPool(Sel,
1314 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) {
1319 << Sel << MatchedSel
1323 Diag(SelLoc, diag::warn_undeclared_selector) << Sel;
1331 LookupDirectMethodInGlobalPool(SemaRef, Sel, onlyDirect, anyDirect);
1343 findMethodInCurrentClass(SemaRef, Sel);
1345 Diag(AtLoc, diag::warn_potentially_direct_selector_expression) << Sel;
1353 << Sel;
1365 ReferencedSelectors.insert(std::make_pair(Sel, AtLoc));
1370 switch (Sel.getMethodFamily()) {
1377 Sel << SourceRange(LParenLoc, RParenLoc);
1394 return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc);
1727 Selector Sel, ArrayRef<SourceLocation> SelectorLocs, ObjCMethodDecl *Method,
1763 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType);
1774 << Sel<< isClassMessage << MatchedSel
1777 Diag(SelLoc, DiagID) << Sel<< isClassMessage << MatchedSel;
1781 << Sel << isClassMessage << SourceRange(SelectorLocs.front(),
1788 if (ThisClass->lookupClassMethod(Sel))
1811 unsigned NumNamedArgs = Sel.getNumArgs();
1814 if (Method->param_size() > Sel.getNumArgs())
1977 Selector Sel, const ObjCObjectPointerType *OPT, bool Instance) {
1980 if ((MD = PROTO->lookupMethod(Sel, Instance))) {
2049 Selector Sel = SemaRef.PP.getSelectorTable().getNullarySelector(Member);
2050 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel);
2054 Getter = LookupMethodInQualifiedType(Sel, OPT, true);
2058 Getter = IFace->lookupPrivateMethod(Sel);
2393 Selector Sel, SourceLocation LBracLoc,
2422 if (Method->getSelector() == Sel)
2430 Sel, /*Method=*/nullptr,
2438 SuperLoc, Sel, /*Method=*/nullptr,
2444 SourceLocation Loc, Selector Sel,
2457 Sel, Method, Loc, Loc, Loc, Args,
2556 Selector Sel,
2560 ObjCStringFormatFamily SFFamily = Sel.getStringFormatFamily();
2608 /// \param Sel The selector to which the message is being sent.
2620 SourceLocation SuperLoc, Selector Sel, ObjCMethodDecl *Method,
2645 ReceiverTypeInfo, Sel, SelectorLocs,
2673 Method = LookupFactoryMethodInGlobalPool(Sel,
2680 Method = Class->lookupClassMethod(Sel);
2684 Method = Class->lookupPrivateClassMethod(Sel);
2698 MultiExprArg(Args, NumArgs), Sel, SelectorLocs,
2741 DiagnoseCStringFormatDirectiveInObjCAPI(SemaRef, Method, Sel, Args, NumArgs);
2748 ReceiverType, Sel, SelectorLocs, Method, ArrayRef(Args, NumArgs),
2752 Context, ReturnType, VK, LBracLoc, ReceiverTypeInfo, Sel, SelectorLocs,
2765 // is obtained from Sel.getNumArgs().
2767 Selector Sel, SourceLocation LBracLoc,
2782 /*SuperLoc=*/SourceLocation(), Sel,
2788 Expr *Receiver, QualType ReceiverType, SourceLocation Loc, Selector Sel,
2792 Sel, Method, Loc, Loc, Loc, Args,
2833 /// \param Sel The selector to which the message is being sent.
2845 Selector Sel, ObjCMethodDecl *Method, SourceLocation LBracLoc,
2891 Context, Context.DependentTy, VK_PRValue, LBracLoc, Receiver, Sel,
2960 CollectMultipleMethodsInGlobalPool(Sel, Methods, true/*InstanceFirst*/,
2968 Sel, ArgsIn, Method->isInstanceMethod(), Methods))
2971 if (!AreMultipleMethodsInGlobalPool(Sel, Method,
2986 Method = LookupMethodInQualifiedType(Sel, QClassTy, false);
2988 Method = LookupMethodInQualifiedType(Sel, QClassTy, true);
2992 << Method->getSelector() << Sel;
3004 Method = ClassDecl->lookupClassMethod(Sel);
3007 Method = ClassDecl->lookupPrivateClassMethod(Sel);
3014 // If not messaging 'self', look for any factory method named 'Sel'.
3019 CollectMultipleMethodsInGlobalPool(Sel, Methods,
3033 << Sel << SourceRange(LBracLoc, RBracLoc);
3038 Sel, ArgsIn, Method->isInstanceMethod(), Methods))
3053 Method = LookupMethodInQualifiedType(Sel, QIdTy, true);
3055 Method = LookupMethodInQualifiedType(Sel, QIdTy, false);
3082 Method = ClassDecl->lookupInstanceMethod(Sel);
3087 Method = LookupMethodInQualifiedType(Sel, OCIType, true);
3091 Method = ClassDecl->lookupPrivateMethod(Sel);
3095 << OCIType->getPointeeType() << Sel << RecRange
3106 CollectMultipleMethodsInGlobalPool(Sel, Methods,
3115 Sel, ArgsIn, Method->isInstanceMethod(), Methods))
3118 AreMultipleMethodsInGlobalPool(Sel, Method,
3126 << Sel << RecRange;
3200 ID->isDesignatedInitializer(Sel)) {
3240 MultiExprArg(Args, NumArgs), Sel, SelectorLocs,
3255 (Method ? Method->getMethodFamily() : Sel.getMethodFamily());
3278 << Sel << RecRange;
3332 DiagnoseCStringFormatDirectiveInObjCAPI(SemaRef, Method, Sel, Args, NumArgs);
3339 ReceiverType, Sel, SelectorLocs, Method, ArrayRef(Args, NumArgs),
3343 Context, ReturnType, VK, LBracLoc, Receiver, Sel, SelectorLocs, Method,
3394 if (!IsWeak && Sel.isUnarySelector())
3412 Selector Sel = OSE->getSelector();
3414 auto Pos = S.ReferencedSelectors.find(Sel);
3422 // is obtained from Sel.getNumArgs().
3424 Selector Sel, SourceLocation LBracLoc,
3444 if (Sel == RespondsToSelectorSel)
3448 /*SuperLoc=*/SourceLocation(), Sel,
4275 Selector Sel = Context.Selectors.getUnarySelector(CMId);
4276 ClassMethod = RelatedClass->lookupMethod(Sel, false);
4280 << SrcType << DestType << Sel << false;
4289 Selector Sel = Context.Selectors.getNullarySelector(IMId);
4290 InstanceMethod = RelatedClass->lookupMethod(Sel, true);
4294 << SrcType << DestType << Sel << true;