Lines Matching defs:Sel

154                                  Selector Sel, const ObjCMethodDecl *Method) {
157 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
165 << Sel;
267 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind,
289 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel);
294 CX, SourceLocation(), SourceLocation(), Sel, S.NSNumberPointer,
309 if (!validateBoxingMethod(S.SemaRef, Loc, S.NSNumberDecl, Sel, Method))
813 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount);
814 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel);
818 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo,
844 if (!validateBoxingMethod(SemaRef, Loc, NSArrayDecl, Sel, Method))
853 << Sel;
864 << Sel;
973 Selector Sel = NSAPIObj->getNSDictionarySelector(
975 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel);
978 Context, SourceLocation(), SourceLocation(), Sel, IdT,
1013 if (!validateBoxingMethod(SemaRef, SR.getBegin(), NSDictionaryDecl, Sel,
1023 << Sel;
1057 << Sel;
1070 << Sel;
1235 static ObjCMethodDecl *LookupDirectMethodInMethodList(Sema &S, Selector Sel,
1239 (void)Sel;
1246 assert(Method->getSelector() == Sel && "Method with wrong selector in method list");
1261 static ObjCMethodDecl *LookupDirectMethodInGlobalPool(Sema &S, Selector Sel,
1264 auto Iter = S.ObjC().MethodPool.find(Sel);
1269 S, Sel, Iter->second.first, onlyDirect, anyDirect);
1271 S, Sel, Iter->second.second, onlyDirect, anyDirect);
1276 static ObjCMethodDecl *findMethodInCurrentClass(Sema &S, Selector Sel) {
1284 // whether Sel is potentially direct in this context.
1285 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true))
1287 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/true))
1289 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/false))
1291 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/false))
1297 ExprResult SemaObjC::ParseObjCSelectorExpression(Selector Sel,
1304 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel,
1307 Method = LookupFactoryMethodInGlobalPool(Sel,
1310 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) {
1315 << Sel << MatchedSel
1319 Diag(SelLoc, diag::warn_undeclared_selector) << Sel;
1327 LookupDirectMethodInGlobalPool(SemaRef, Sel, onlyDirect, anyDirect);
1339 findMethodInCurrentClass(SemaRef, Sel);
1341 Diag(AtLoc, diag::warn_potentially_direct_selector_expression) << Sel;
1349 << Sel;
1361 ReferencedSelectors.insert(std::make_pair(Sel, AtLoc));
1366 switch (Sel.getMethodFamily()) {
1373 Sel << SourceRange(LParenLoc, RParenLoc);
1390 return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc);
1715 Selector Sel, ArrayRef<SourceLocation> SelectorLocs, ObjCMethodDecl *Method,
1751 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType);
1762 << Sel<< isClassMessage << MatchedSel
1765 Diag(SelLoc, DiagID) << Sel<< isClassMessage << MatchedSel;
1769 << Sel << isClassMessage << SourceRange(SelectorLocs.front(),
1776 if (ThisClass->lookupClassMethod(Sel))
1799 unsigned NumNamedArgs = Sel.getNumArgs();
1802 if (Method->param_size() > Sel.getNumArgs())
1965 Selector Sel, const ObjCObjectPointerType *OPT, bool Instance) {
1968 if ((MD = PROTO->lookupMethod(Sel, Instance))) {
2037 Selector Sel = SemaRef.PP.getSelectorTable().getNullarySelector(Member);
2038 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel);
2042 Getter = LookupMethodInQualifiedType(Sel, OPT, true);
2046 Getter = IFace->lookupPrivateMethod(Sel);
2381 Selector Sel, SourceLocation LBracLoc,
2410 if (Method->getSelector() == Sel)
2418 Sel, /*Method=*/nullptr,
2426 SuperLoc, Sel, /*Method=*/nullptr,
2432 SourceLocation Loc, Selector Sel,
2445 Sel, Method, Loc, Loc, Loc, Args,
2544 Selector Sel,
2548 ObjCStringFormatFamily SFFamily = Sel.getStringFormatFamily();
2596 /// \param Sel The selector to which the message is being sent.
2608 SourceLocation SuperLoc, Selector Sel, ObjCMethodDecl *Method,
2633 ReceiverTypeInfo, Sel, SelectorLocs,
2661 Method = LookupFactoryMethodInGlobalPool(Sel,
2668 Method = Class->lookupClassMethod(Sel);
2672 Method = Class->lookupPrivateClassMethod(Sel);
2686 MultiExprArg(Args, NumArgs), Sel, SelectorLocs,
2729 DiagnoseCStringFormatDirectiveInObjCAPI(SemaRef, Method, Sel, Args, NumArgs);
2736 ReceiverType, Sel, SelectorLocs, Method, ArrayRef(Args, NumArgs),
2740 Context, ReturnType, VK, LBracLoc, ReceiverTypeInfo, Sel, SelectorLocs,
2753 // is obtained from Sel.getNumArgs().
2755 Selector Sel, SourceLocation LBracLoc,
2770 /*SuperLoc=*/SourceLocation(), Sel,
2776 Expr *Receiver, QualType ReceiverType, SourceLocation Loc, Selector Sel,
2780 Sel, Method, Loc, Loc, Loc, Args,
2821 /// \param Sel The selector to which the message is being sent.
2833 Selector Sel, ObjCMethodDecl *Method, SourceLocation LBracLoc,
2879 Context, Context.DependentTy, VK_PRValue, LBracLoc, Receiver, Sel,
2948 CollectMultipleMethodsInGlobalPool(Sel, Methods, true/*InstanceFirst*/,
2956 Sel, ArgsIn, Method->isInstanceMethod(), Methods))
2959 if (!AreMultipleMethodsInGlobalPool(Sel, Method,
2974 Method = LookupMethodInQualifiedType(Sel, QClassTy, false);
2976 Method = LookupMethodInQualifiedType(Sel, QClassTy, true);
2980 << Method->getSelector() << Sel;
2992 Method = ClassDecl->lookupClassMethod(Sel);
2995 Method = ClassDecl->lookupPrivateClassMethod(Sel);
3002 // If not messaging 'self', look for any factory method named 'Sel'.
3007 CollectMultipleMethodsInGlobalPool(Sel, Methods,
3021 << Sel << SourceRange(LBracLoc, RBracLoc);
3026 Sel, ArgsIn, Method->isInstanceMethod(), Methods))
3041 Method = LookupMethodInQualifiedType(Sel, QIdTy, true);
3043 Method = LookupMethodInQualifiedType(Sel, QIdTy, false);
3070 Method = ClassDecl->lookupInstanceMethod(Sel);
3075 Method = LookupMethodInQualifiedType(Sel, OCIType, true);
3079 Method = ClassDecl->lookupPrivateMethod(Sel);
3083 << OCIType->getPointeeType() << Sel << RecRange
3094 CollectMultipleMethodsInGlobalPool(Sel, Methods,
3103 Sel, ArgsIn, Method->isInstanceMethod(), Methods))
3106 AreMultipleMethodsInGlobalPool(Sel, Method,
3114 << Sel << RecRange;
3188 ID->isDesignatedInitializer(Sel)) {
3229 MultiExprArg(Args, NumArgs), Sel, SelectorLocs,
3244 (Method ? Method->getMethodFamily() : Sel.getMethodFamily());
3267 << Sel << RecRange;
3321 DiagnoseCStringFormatDirectiveInObjCAPI(SemaRef, Method, Sel, Args, NumArgs);
3328 ReceiverType, Sel, SelectorLocs, Method, ArrayRef(Args, NumArgs),
3332 Context, ReturnType, VK, LBracLoc, Receiver, Sel, SelectorLocs, Method,
3383 if (!IsWeak && Sel.isUnarySelector())
3401 Selector Sel = OSE->getSelector();
3403 auto Pos = S.ReferencedSelectors.find(Sel);
3411 // is obtained from Sel.getNumArgs().
3413 Selector Sel, SourceLocation LBracLoc,
3433 if (Sel == RespondsToSelectorSel)
3437 /*SuperLoc=*/SourceLocation(), Sel,
4264 Selector Sel = Context.Selectors.getUnarySelector(CMId);
4265 ClassMethod = RelatedClass->lookupMethod(Sel, false);
4269 << SrcType << DestType << Sel << false;
4278 Selector Sel = Context.Selectors.getNullarySelector(IMId);
4279 InstanceMethod = RelatedClass->lookupMethod(Sel, true);
4283 << SrcType << DestType << Sel << true;