Lines Matching defs:Class
123 // a @class NSString; and use that instead. This is to make sure
146 const ObjCInterfaceDecl *Class,
150 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
193 // Look up the NSNumber class, if we haven't done so already. It's cached
615 // Look up the NSArray class, if we haven't done so already.
732 // Look up the NSDictionary class, if we haven't done so already.
1045 // C++ case, we don't require an instance method --- class methods
1072 // was a class message send, T is the declared return type of the method
1077 // - if the receiver is super, T is a pointer to the class of the
1081 if (ObjCInterfaceDecl *Class = CurMethod->getClassInterface())
1083 Context.getObjCInterfaceType(Class));
1086 // - if the receiver is the name of a class U, T is a pointer to U
1090 // - if the receiver is of type Class or qualified Class type,
1096 // - if the receiver is id, qualified id, Class, or qualified Class, T
1252 // Find the class to which we are sending this message.
1254 if (ObjCInterfaceDecl *Class =
1256 Diag(Class->getLocation(), diag::note_receiver_class_declared);
1668 // The current class does not have a superclass.
1684 // Otherwise, if this is a class method, try dispatching to our
1729 // Look through local category implementations associated with the class.
1757 class ObjCInterfaceOrSuperCCC : public CorrectionCandidateCallback {
1819 // If the identifier is a class or not, and there is a trailing dot,
1823 // We found something. If it's a type, then we have a class
1827 if (ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(ND))
1828 T = Context.getObjCInterfaceType(Class);
1836 // We have a class message, and T is the type we're
1855 } else if (ObjCInterfaceDecl *Class =
1858 // class.
1862 Class->getNameAsString());
1863 Diag(Class->getLocation(), diag::note_previous_decl)
1866 QualType T = Context.getObjCInterfaceType(Class);
1891 ObjCInterfaceDecl *Class = Method->getClassInterface();
1892 if (!Class) {
1898 ObjCInterfaceDecl *Super = Class->getSuperClass();
1900 // The current class does not have a superclass.
1902 << Class->getIdentifier();
1906 // We are in a method whose class has a superclass, so 'super'
1921 // Since we are in a class method, this is a class message to
1991 /// \brief Build an Objective-C class message expression.
1993 /// This routine takes care of both normal class messages and
1994 /// class messages to the superclass.
2011 /// \param Method The method that this class message is invoking, if
2055 // Find the class to which we are sending this message.
2056 ObjCInterfaceDecl *Class = 0;
2058 if (!ClassType || !(Class = ClassType->getInterface())) {
2063 assert(Class && "We don't know which class we're messaging?");
2066 (void)DiagnoseUseOfDecl(Class, SelLoc);
2072 if (RequireCompleteType(Loc, Context.getObjCInterfaceType(Class),
2077 // A forward class used in messaging is treated as a 'Class'
2085 Method = Class->lookupClassMethod(Sel);
2089 Method = Class->lookupPrivateClassMethod(Sel);
2309 // Handle messages to Class.
2310 // We allow sending a message to a qualified Class ("Class<foo>"), which
2314 // Search protocols for class methods.
2318 // warn if instance method found for a Class message.
2329 // First check the public methods in the class interface.
2345 // If no class (factory) method was found, check if an _instance_
2346 // method of the same name exists in the root class only.
2731 class ARCCastChecker : public StmtVisitor<ARCCastChecker, ACCResult> {