reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaExprObjC.cpp
 2781   if (!Method) {
 2796         Method = Methods[0];
 2799             SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod(), Methods))
 2800           Method = BestMethod;
 2802         if (!AreMultipleMethodsInGlobalPool(Sel, Method,
 2805           DiagnoseUseOfDecl(Method, SelectorSlotLocs);
 2817         Method = LookupMethodInQualifiedType(Sel, QClassTy, false);
 2818         if (!Method) {
 2819           Method = LookupMethodInQualifiedType(Sel, QClassTy, true);
 2821           if (Method && !isMethodDeclaredInRootProtocol(*this, Method)) {
 2821           if (Method && !isMethodDeclaredInRootProtocol(*this, Method)) {
 2823               << Method->getSelector() << Sel;
 2824             Diag(Method->getLocation(), diag::note_method_declared_at)
 2825               << Method->getDeclName();
 2835             Method = ClassDecl->lookupClassMethod(Sel);
 2837             if (!Method)
 2838               Method = ClassDecl->lookupPrivateClassMethod(Sel);
 2840             if (Method && DiagnoseUseOfDecl(Method, SelectorSlotLocs))
 2840             if (Method && DiagnoseUseOfDecl(Method, SelectorSlotLocs))
 2844         if (!Method) {
 2856               Method = Methods[0];
 2859               if (Method->isInstanceMethod()) {
 2861                     dyn_cast<ObjCInterfaceDecl>(Method->getDeclContext())) {
 2869                  SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod(),
 2871                Method = BestMethod;
 2885         Method = LookupMethodInQualifiedType(Sel, QIdTy, true);
 2886         if (!Method)
 2887           Method = LookupMethodInQualifiedType(Sel, QIdTy, false);
 2888         if (Method && DiagnoseUseOfDecl(Method, SelectorSlotLocs))
 2888         if (Method && DiagnoseUseOfDecl(Method, SelectorSlotLocs))
 2912           Method = nullptr;
 2914           Method = ClassDecl->lookupInstanceMethod(Sel);
 2917         if (!Method)
 2919           Method = LookupMethodInQualifiedType(Sel, OCIType, true);
 2921         if (!Method) {
 2923           Method = ClassDecl->lookupPrivateMethod(Sel);
 2925           if (!Method && getLangOpts().ObjCAutoRefCount) {
 2932           if (!Method && (!Receiver || !isSelfExpr(Receiver))) {
 2944                 Method = Methods[0];
 2947                     SelectBestMethod(Sel, ArgsIn, Method->isInstanceMethod(),
 2949                   Method = BestMethod;
 2951                 AreMultipleMethodsInGlobalPool(Sel, Method,
 2956               if (Method && !forwardClass)
 2963         if (Method && DiagnoseUseOfDecl(Method, SelectorSlotLocs, forwardClass))
 2963         if (Method && DiagnoseUseOfDecl(Method, SelectorSlotLocs, forwardClass))
 2975     (Method && Method->getMethodFamily() == OMF_init)
 2975     (Method && Method->getMethodFamily() == OMF_init)
 3029                                 Method, ClassMessage, SuperLoc.isValid(),
 3033   if (Method && !Method->getReturnType()->isVoidType() &&
 3033   if (Method && !Method->getReturnType()->isVoidType() &&
 3034       RequireCompleteType(LBracLoc, Method->getReturnType(),
 3042       (Method ? Method->getMethodFamily() : Sel.getMethodFamily());
 3042       (Method ? Method->getMethodFamily() : Sel.getMethodFamily());
 3045       if (Method)
 3046         checkInitMethod(Method, ReceiverType);
 3069       if (Method && NumArgs >= 1) {
 3119   DiagnoseCStringFormatDirectiveInObjCAPI(*this, Method, Sel, Args, NumArgs);
 3126                                      ReceiverType, Sel, SelectorLocs, Method,
 3131                                      Receiver, Sel, SelectorLocs, Method,
 3137   if (Method) {
 3154     checkFoundationAPI(*this, SelLoc, Method, makeArrayRef(Args, NumArgs),
 3179     if (!isImplicit && Method) {
 3180       if (const ObjCPropertyDecl *Prop = Method->findPropertyDecl()) {