Lines Matching defs:Class
49 // We ignore protocols here. Should we? What about Class?
69 // Otherwise, we try to compare class types.
85 assert(receiverClass && "method not associated with a class!");
88 // If either class is a subclass of the other, it's fine.
125 // Figure out which class this method is part of, if any.
267 S.Diag(ND->getLocation(), diag::note_previous_decl) << "class";
386 // No need to issue deprecated warning if deprecated mehod in class/category
397 // Only do this if the current class actually has a superclass.
426 // function will reject corrections to that class.
427 class ObjCInterfaceValidatorCCC : public CorrectionCandidateCallback {
451 assert(ClassName && "Missing class identifier");
469 // @class NewImage;
486 // Class already seen. Was it a definition?
499 // Start the definition of this class. If we're in a redefinition case, there
511 // to the class we're defining.
537 // The previous declaration was not a class decl. Check if we have a
538 // typedef. If we do, get the underlying class type.
582 } else { // we have a root class.
612 // Check for class declaration
782 /// a class method in its extension.
853 /// Check that class of this category is already completely declared.
882 // Class extensions can be declared multiple times, categories cannot.
897 // Protocols in the class extension belong to the class.
931 /// Check that class of this category is already completely declared.
957 // Warn on implementating category of deprecated class under
987 // typos in the class name.
1009 // Check that super class name is valid class name
1028 // super class.
1057 // @class ....;
1070 // Check that there is no duplicate implementation of this class.
1080 // Warn on implementating deprecated class under
1117 /// Add implementations's ivar to the synthesize class's ivar list.
1120 // Add ivar's to class's DeclContext.
1145 // Check class extensions (unnamed categories) for duplicate ivars.
1175 assert (ClsIvar && "missing class ivar");
1253 /// by a valid A*. Similarly, a method may return a subclass of the class that
1275 // implement all of the protocols in B. It may not be a qualified class.
1296 // Now we know that A and B are (potentially-qualified) class types. The
1564 // class is not required to implement it and it is safe for protocol
1568 // don't issue warning when primary class's method is
1623 // check to see if class
1624 // of this class are derived from 'NSProxy' so that to forward requests
1627 // implemented in the class, we should not issue "Method definition not
1644 // the method was implemented by a base class or an inherited
1658 // has been declared in its primary class, superclass,
1660 // This is because method will be implemented in the primary class
1661 // or one of its super class implementation.
1664 // have been synthesized due to a property declared in the class which
1680 // check unimplemented class methods
1719 // Check and see if instance methods in class interface have been
1720 // implemented in the implementation class. If so, their types match.
1750 // Check and see if class methods in class interface have been
1751 // implemented in the implementation class. If so, their types match.
1778 // i.e. when WarnCategoryMethodImpl is false, check declarations in class
1790 // Also methods in class extensions need be looked at next.
1811 // in category implementation and its primary class's super class.
1820 /// category matches with those implemented in its primary class and
1838 // Get category's primary class.
1857 // Check and see if instance methods in class interface have been
1858 // implemented in the implementation class.
1878 // Check for type conflict of methods declared in a class/protocol and
1886 // in its primary class.
1892 // class.
1893 // Check and see if class methods in class interface have been
1894 // implemented in the implementation class.
1902 // Check class extensions (unnamed categories)
1910 // For extended class, unimplemented methods in its protocols will
1911 // be reported in the primary class.
1939 // @class XCElementToggler;
1941 // Here we have chosen to ignore the forward class declaration
1948 // a forward class declaration matching a typedef name of a class refers
1949 // to the underlying class. Just ignore the forward class with a warning
1969 // @class NewImage;
2347 return S.LookupMethodInObjectType(Sel, ObjectType, false/*Class method*/) != 0;
2385 // class methods
2445 // second, class methods
2452 /// Check for duplicate ivars in the entire class at the start of
2453 /// \@implementation. This becomes necesssary because class extension can
2454 /// add ivars to a class in random order which will not be known until
2455 /// class's \@implementation is seen.
2495 // Note: For class/category implementations, allMethods is always null.
2545 /// Check for class method of the same name with incompatible types
2572 // Categories are used to extend the class by declaring new methods.
2574 // need to compare the added property to those in the class.
2595 // Any property declared in a class extension might have user
2596 // declared setter or getter in current class extension or one
2597 // of the other class extensions. Mark them as synthesized as
2634 // This class has no superclass, so check that it has been marked with
2642 // adding " : NSObject " to the class declaration.
2771 /// method declaration is compatible with the method's class.
2779 // declared result type must be compatible with its own class type. The
2791 // - it is the same as the method's class type, or
2795 // - it is a superclass of the method's class type
2810 /// A helper class for searching for methods which a particular method
2812 class OverrideSearch {
2823 // Bypass this search if we've never seen an instance/class method
2885 // the main class and from protocols the category references.
2886 // The main class is handled in the constructor.
2899 // Otherwise it overrides declarations from the class.
2906 // A method in a class declaration overrides declarations from
2918 // - the super class, and
2927 // A method in a class implementation overrides declarations from
2928 // the class interface.
2968 // Keep track if the method overrides any method in the class's base classes,
2987 // check whether a category of a base class introduced a method with the
3047 // If type of argument of method in this class does not match its
3048 // respective argument type in the super class method, issue warning;
3312 // Check that ClassName is a valid class
3313 ObjCInterfaceDecl *Class = getObjCInterfaceDecl(ClassName, DeclStart);
3314 if (!Class) {
3325 Context.DeepCollectObjCIvars(Class, true, Ivars);
3394 // We allow the "register" storage class on exception variables because
3395 // GCC did, but we drop it completely. Any other storage class is an error.