Lines Matching defs:method

143 /// \brief Emits an error if the given method does not exist, or if the return
167 /// \brief Retrieve the NSNumber factory method that should be used to create
184 // If we already looked up this method, we're done.
223 // Look for the appropriate method within NSNumber.
226 // create a stub definition this NSNumber factory method.
282 // Look for the appropriate method within NSNumber.
491 // Look for the appropriate method within NSString.
560 // Look for the appropriate method within NSNumber.
656 // Find the arrayWithObjects:count: method, if we haven't done so already.
721 // We've found a good +arrayWithObjects:count: method. Save it!
772 // Find the dictionaryWithObjects:forKeys:count: method, if we haven't done
880 // We've found a good +dictionaryWithObjects:keys:count: method; save it!
1061 // If we're not in an ObjC method, error out. Note that, unlike the
1062 // C++ case, we don't require an instance method --- class methods
1064 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(DC);
1065 if (!method)
1068 tryCaptureVariable(method->getSelfDecl(), Loc);
1070 return method;
1083 assert(Method && "Must have a method");
1087 // If a method has a related return type:
1088 // - if the method found is an instance method, but the message send
1089 // was a class message send, T is the declared return type of the method
1095 // enclosing method definition
1108 // T is the declared return type of the method.
1119 /// Look for an ObjC method whose result type exactly matches the given type.
1125 // For these purposes, a method in an @implementation overrides a
1154 // Only complain if we're in an ObjC method and the required return
1155 // type doesn't match the method's declared return type.
1161 // Look for a method overridden by this method which explicitly uses
1174 << /*current method*/ 1 << range;
1178 // Otherwise, if we have an interesting method family, note that.
1182 << /*current method*/ 1
1294 // to addition of c-style arguments in method.
1367 << 2 /*method*/ << NumNamedArgs << static_cast<unsigned>(Args.size())
1376 // Do additional checkings on method.
1384 // 'self' is objc 'self' in an objc method only.
1385 ObjCMethodDecl *method =
1387 if (!method) return false;
1391 if (DRE->getDecl() == method->getSelfDecl())
1396 /// LookupMethodInType - Look up a method in an ObjCObjectType.
1402 if (ObjCMethodDecl *method = iface->lookupMethod(sel, isInstance))
1403 return method;
1407 if (ObjCMethodDecl *method = iface->lookupPrivateMethod(sel, isInstance))
1408 return method;
1414 if (ObjCMethodDecl *method = (*i)->lookupMethod(sel, isInstance))
1415 return method;
1420 /// LookupMethodInQualifiedType - Lookups up a method in protocol qualifier
1467 // See if receiver is a method which envokes a synthesized getter
1669 // If the "receiver" is 'super' in a method, handle it as an expression-like
1695 // Otherwise, if this is a class method, try dispatching to our
1804 // Objective-C method, look for ivars. If we find one, we're done!
1889 // Determine whether we are inside a method or not.
1911 // We are in a method whose class has a superclass, so 'super'
1917 // Since we are in an instance method, this is an instance
1926 // Since we are in a class method, this is a class message to
2016 /// \param Method The method that this class message is invoking, if
2072 // Find the method we are messaging.
2193 /// \param Method The method that this instance message is invoking, if
2302 // won't actually have a method unless we also don't need to do some
2328 // warn if instance method found for a Class message.
2349 // If not messaging 'self', look for any factory method named 'Sel'.
2355 // If no class (factory) method was found, check if an _instance_
2356 // method of the same name exists in the root class only.
2426 // If we still haven't found a method, look in the global pool. This
2518 // selector names a +1 method
2528 // selector names a +1 method
2572 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext);
2573 if (method && method->getMethodFamily() == OMF_init) {
2901 ObjCMethodDecl *method;
2903 method = e->getExplicitProperty()->getGetterMethodDecl();
2905 method = e->getImplicitPropertyGetter();
2906 return checkCallToMethod(method);
2909 ACCResult checkCallToMethod(ObjCMethodDecl *method) {
2910 if (!method) return ACC_invalid;
2915 if (!isAnyRetainable(TargetClass) || !isCFType(method->getResultType()))
2918 // If the method is explicitly marked not-retained, it's +0.
2919 if (method->hasAttr<CFReturnsNotRetainedAttr>())
2922 // If the method is explicitly marked as returning retained, or its
2924 if (method->hasAttr<CFReturnsRetainedAttr>())
2927 switch (method->getSelector().getMethodFamily()) {