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