Lines Matching refs:Sel
149 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() argument
152 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName(); in validateBoxingMethod()
160 << Sel; in validateBoxingMethod()
261 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind, in getNSNumberFactoryMethod() local
283 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod()
288 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel, in getNSNumberFactoryMethod()
304 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method)) in getNSNumberFactoryMethod()
808 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount); in BuildObjCArrayLiteral() local
809 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); in BuildObjCArrayLiteral()
813 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo, in BuildObjCArrayLiteral()
839 if (!validateBoxingMethod(*this, Loc, NSArrayDecl, Sel, Method)) in BuildObjCArrayLiteral()
848 << Sel; in BuildObjCArrayLiteral()
859 << Sel; in BuildObjCArrayLiteral()
969 Selector Sel = NSAPIObj->getNSDictionarySelector( in BuildObjCDictionaryLiteral() local
971 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel); in BuildObjCDictionaryLiteral()
974 Context, SourceLocation(), SourceLocation(), Sel, IdT, in BuildObjCDictionaryLiteral()
1009 if (!validateBoxingMethod(*this, SR.getBegin(), NSDictionaryDecl, Sel, in BuildObjCDictionaryLiteral()
1019 << Sel; in BuildObjCDictionaryLiteral()
1056 << Sel; in BuildObjCDictionaryLiteral()
1069 << Sel; in BuildObjCDictionaryLiteral()
1231 static ObjCMethodDecl *LookupDirectMethodInMethodList(Sema &S, Selector Sel, in LookupDirectMethodInMethodList() argument
1235 (void)Sel; in LookupDirectMethodInMethodList()
1242 assert(Method->getSelector() == Sel && "Method with wrong selector in method list"); in LookupDirectMethodInMethodList()
1257 static ObjCMethodDecl *LookupDirectMethodInGlobalPool(Sema &S, Selector Sel, in LookupDirectMethodInGlobalPool() argument
1260 auto Iter = S.MethodPool.find(Sel); in LookupDirectMethodInGlobalPool()
1265 S, Sel, Iter->second.first, onlyDirect, anyDirect); in LookupDirectMethodInGlobalPool()
1267 S, Sel, Iter->second.second, onlyDirect, anyDirect); in LookupDirectMethodInGlobalPool()
1272 static ObjCMethodDecl *findMethodInCurrentClass(Sema &S, Selector Sel) { in findMethodInCurrentClass() argument
1281 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true)) in findMethodInCurrentClass()
1283 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/true)) in findMethodInCurrentClass()
1285 if (ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/false)) in findMethodInCurrentClass()
1287 if (ObjCMethodDecl *MD = IFace->lookupPrivateMethod(Sel, /*Instance=*/false)) in findMethodInCurrentClass()
1293 ExprResult Sema::ParseObjCSelectorExpression(Selector Sel, in ParseObjCSelectorExpression() argument
1299 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel, in ParseObjCSelectorExpression()
1302 Method = LookupFactoryMethodInGlobalPool(Sel, in ParseObjCSelectorExpression()
1305 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) { in ParseObjCSelectorExpression()
1310 << Sel << MatchedSel in ParseObjCSelectorExpression()
1314 Diag(SelLoc, diag::warn_undeclared_selector) << Sel; in ParseObjCSelectorExpression()
1322 LookupDirectMethodInGlobalPool(*this, Sel, onlyDirect, anyDirect); in ParseObjCSelectorExpression()
1333 ObjCMethodDecl *LikelyTargetMethod = findMethodInCurrentClass(*this, Sel); in ParseObjCSelectorExpression()
1335 Diag(AtLoc, diag::warn_potentially_direct_selector_expression) << Sel; in ParseObjCSelectorExpression()
1343 << Sel; in ParseObjCSelectorExpression()
1354 ReferencedSelectors.insert(std::make_pair(Sel, AtLoc)); in ParseObjCSelectorExpression()
1359 switch (Sel.getMethodFamily()) { in ParseObjCSelectorExpression()
1366 Sel << SourceRange(LParenLoc, RParenLoc); in ParseObjCSelectorExpression()
1383 return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc); in ParseObjCSelectorExpression()
1714 Selector Sel, ArrayRef<SourceLocation> SelectorLocs, ObjCMethodDecl *Method, in CheckMessageArgumentTypes() argument
1749 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType); in CheckMessageArgumentTypes()
1760 << Sel<< isClassMessage << MatchedSel in CheckMessageArgumentTypes()
1763 Diag(SelLoc, DiagID) << Sel<< isClassMessage << MatchedSel; in CheckMessageArgumentTypes()
1767 << Sel << isClassMessage << SourceRange(SelectorLocs.front(), in CheckMessageArgumentTypes()
1774 if (ThisClass->lookupClassMethod(Sel)) in CheckMessageArgumentTypes()
1797 unsigned NumNamedArgs = Sel.getNumArgs(); in CheckMessageArgumentTypes()
1800 if (Method->param_size() > Sel.getNumArgs()) in CheckMessageArgumentTypes()
1960 ObjCMethodDecl *Sema::LookupMethodInQualifiedType(Selector Sel, in LookupMethodInQualifiedType() argument
1966 if ((MD = PROTO->lookupMethod(Sel, Instance))) { in LookupMethodInQualifiedType()
2037 Selector Sel = PP.getSelectorTable().getNullarySelector(Member); in HandleExprPropertyRefExpr() local
2038 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel); in HandleExprPropertyRefExpr()
2042 Getter = LookupMethodInQualifiedType(Sel, OPT, true); in HandleExprPropertyRefExpr()
2046 Getter = IFace->lookupPrivateMethod(Sel); in HandleExprPropertyRefExpr()
2384 Selector Sel, in ActOnSuperMessage() argument
2413 if (Method->getSelector() == Sel) in ActOnSuperMessage()
2421 Sel, /*Method=*/nullptr, in ActOnSuperMessage()
2429 SuperLoc, Sel, /*Method=*/nullptr, in ActOnSuperMessage()
2436 Selector Sel, in BuildClassMessageImplicit() argument
2445 Sel, Method, Loc, Loc, Loc, Args, in BuildClassMessageImplicit()
2544 Selector Sel, in DiagnoseCStringFormatDirectiveInObjCAPI() argument
2548 ObjCStringFormatFamily SFFamily = Sel.getStringFormatFamily(); in DiagnoseCStringFormatDirectiveInObjCAPI()
2609 Selector Sel, in BuildClassMessage() argument
2637 Context, ReceiverType, VK_PRValue, LBracLoc, ReceiverTypeInfo, Sel, in BuildClassMessage()
2665 Method = LookupFactoryMethodInGlobalPool(Sel, in BuildClassMessage()
2672 Method = Class->lookupClassMethod(Sel); in BuildClassMessage()
2676 Method = Class->lookupPrivateClassMethod(Sel); in BuildClassMessage()
2690 MultiExprArg(Args, NumArgs), Sel, SelectorLocs, in BuildClassMessage()
2733 DiagnoseCStringFormatDirectiveInObjCAPI(*this, Method, Sel, Args, NumArgs); in BuildClassMessage()
2740 ReceiverType, Sel, SelectorLocs, in BuildClassMessage()
2745 ReceiverTypeInfo, Sel, SelectorLocs, in BuildClassMessage()
2762 Selector Sel, in ActOnClassMessage() argument
2776 /*SuperLoc=*/SourceLocation(), Sel, in ActOnClassMessage()
2784 Selector Sel, in BuildInstanceMessageImplicit() argument
2789 Sel, Method, Loc, Loc, Loc, Args, in BuildInstanceMessageImplicit()
2842 Selector Sel, in BuildInstanceMessage() argument
2890 Context, Context.DependentTy, VK_PRValue, LBracLoc, Receiver, Sel, in BuildInstanceMessage()
2955 CollectMultipleMethodsInGlobalPool(Sel, Methods, true/*InstanceFirst*/, in BuildInstanceMessage()
2963 SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod(), Methods)) in BuildInstanceMessage()
2966 if (!AreMultipleMethodsInGlobalPool(Sel, Method, in BuildInstanceMessage()
2981 Method = LookupMethodInQualifiedType(Sel, QClassTy, false); in BuildInstanceMessage()
2983 Method = LookupMethodInQualifiedType(Sel, QClassTy, true); in BuildInstanceMessage()
2987 << Method->getSelector() << Sel; in BuildInstanceMessage()
2999 Method = ClassDecl->lookupClassMethod(Sel); in BuildInstanceMessage()
3002 Method = ClassDecl->lookupPrivateClassMethod(Sel); in BuildInstanceMessage()
3014 CollectMultipleMethodsInGlobalPool(Sel, Methods, in BuildInstanceMessage()
3028 << Sel << SourceRange(LBracLoc, RBracLoc); in BuildInstanceMessage()
3033 SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod(), in BuildInstanceMessage()
3049 Method = LookupMethodInQualifiedType(Sel, QIdTy, true); in BuildInstanceMessage()
3051 Method = LookupMethodInQualifiedType(Sel, QIdTy, false); in BuildInstanceMessage()
3077 Method = ClassDecl->lookupInstanceMethod(Sel); in BuildInstanceMessage()
3082 Method = LookupMethodInQualifiedType(Sel, OCIType, true); in BuildInstanceMessage()
3086 Method = ClassDecl->lookupPrivateMethod(Sel); in BuildInstanceMessage()
3090 << OCIType->getPointeeType() << Sel << RecRange in BuildInstanceMessage()
3101 CollectMultipleMethodsInGlobalPool(Sel, Methods, in BuildInstanceMessage()
3110 SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod(), in BuildInstanceMessage()
3114 AreMultipleMethodsInGlobalPool(Sel, Method, in BuildInstanceMessage()
3122 << Sel << RecRange; in BuildInstanceMessage()
3194 ID->isDesignatedInitializer(Sel)) { in BuildInstanceMessage()
3233 MultiExprArg(Args, NumArgs), Sel, SelectorLocs, in BuildInstanceMessage()
3247 (Method ? Method->getMethodFamily() : Sel.getMethodFamily()); in BuildInstanceMessage()
3270 << Sel << RecRange; in BuildInstanceMessage()
3324 DiagnoseCStringFormatDirectiveInObjCAPI(*this, Method, Sel, Args, NumArgs); in BuildInstanceMessage()
3331 ReceiverType, Sel, SelectorLocs, Method, in BuildInstanceMessage()
3336 Receiver, Sel, SelectorLocs, Method, in BuildInstanceMessage()
3388 if (!IsWeak && Sel.isUnarySelector()) in BuildInstanceMessage()
3405 Selector Sel = OSE->getSelector(); in RemoveSelectorFromWarningCache() local
3407 auto Pos = S.ReferencedSelectors.find(Sel); in RemoveSelectorFromWarningCache()
3418 Selector Sel, in ActOnInstanceMessage() argument
3437 if (Sel == RespondsToSelectorSel) in ActOnInstanceMessage()
3441 /*SuperLoc=*/SourceLocation(), Sel, in ActOnInstanceMessage()
4270 Selector Sel = Context.Selectors.getUnarySelector(CMId); in checkObjCBridgeRelatedComponents() local
4271 ClassMethod = RelatedClass->lookupMethod(Sel, false); in checkObjCBridgeRelatedComponents()
4275 << SrcType << DestType << Sel << false; in checkObjCBridgeRelatedComponents()
4284 Selector Sel = Context.Selectors.getNullarySelector(IMId); in checkObjCBridgeRelatedComponents() local
4285 InstanceMethod = RelatedClass->lookupMethod(Sel, true); in checkObjCBridgeRelatedComponents()
4289 << SrcType << DestType << Sel << true; in checkObjCBridgeRelatedComponents()