Home | History | Annotate | Download | only in Sema

Lines Matching defs:Class

43   class ResultBuilder {
67 class ShadowMapEntry {
112 class iterator;
304 /// class of the searched context.
347 class ResultBuilder::ShadowMapEntry::iterator {
357 class pointer {
500 // Class template (partial) specializations are never added as results.
988 // Adjust the priority if this result comes from a base class.
1097 /// start of a C++ nested-name-specifier, e.g., a class or namespace.
1099 // Allow us to find class templates, too.
1111 /// \brief Determines whether the given declaration is a class or struct.
1113 // Allow us to find class templates, too.
1128 // Allow us to find class templates, too.
1157 /// \brief Determines which members of a class should be visible via
1196 // particular class type has any conversions to Objective-C types. For now,
1197 // just accept all class types.
1249 class CodeCompletionDeclConsumer : public VisibleDeclConsumer {
1303 Results.AddResult(Result("class", CCP_Type));
1483 case TTK_Class: return "class <anonymous>";
1997 // Add "super", if we're in an Objective-C class with a superclass.
2326 PlaceholderStr = "class";
2346 PlaceholderStr = "template<...> class";
3347 // be a receiver of a class message, this may be a class message send with
3599 // Access to a C/C++ class, struct, or union.
3644 ObjCInterfaceDecl *Class = 0;
3647 Class = ObjCPtr->getInterfaceDecl();
3649 Class = BaseType->getAs<ObjCObjectType>()->getInterface();
3651 // Add all ivars from this class and its superclasses.
3652 if (Class) {
3655 LookupVisibleDecls(Class, LookupMemberName, Consumer,
4112 // If we aren't in class scope, we could see the "namespace" keyword.
4467 // @class name ;
4468 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"class"));
4479 Builder.AddPlaceholderChunk("class");
4491 Builder.AddPlaceholderChunk("class");
4500 Builder.AddPlaceholderChunk("class");
4827 /// The container will be a class, protocol, category, or implementation of
4860 // The instance methods on the root class can be messaged via the
4948 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurContext);
4949 if (!Class) {
4952 Class = Category->getClassInterface();
4954 if (!Class)
4965 AddObjCMethods(Class, true, MK_ZeroArgSelector, None, CurContext, Selectors,
4975 ObjCInterfaceDecl *Class
4977 if (!Class) {
4980 Class = Category->getClassInterface();
4982 if (!Class)
4993 AddObjCMethods(Class, true, MK_OneArgSelector, None, CurContext,
5075 /// that it has some more-specific class type based on knowledge of
5076 /// common uses of Objective-C. This routine returns that class type,
5095 // Determine the class that we're sending the message to.
5098 case ObjCMessageExpr::Class:
5131 .Case("class", IFace)
5140 .Case("class", IFace)
5169 ObjCInterfaceDecl *Class = CurMethod->getClassInterface();
5170 if (!Class)
5175 while ((Class = Class->getSuperClass()) && !SuperMethod) {
5176 // Check in the class
5177 SuperMethod = Class->getMethod(CurMethod->getSelector(),
5180 // Check in categories or class extensions.
5183 Cat = Class->known_categories_begin(),
5184 CatEnd = Class->known_categories_end();
5282 // If we are in an Objective-C method inside a class that has a superclass,
5314 // Find the superclass of this class.
5419 // Add all of the factory methods in this Objective-C class, its protocols,
5442 // We're messaging "id" as a type; provide all class/factory methods.
5444 // If we have an external source, load the entire class method
5534 // If we're messaging an expression with type "id" or "Class", check
5573 // Handle messages to Class. This really isn't a message to an instance
5575 // class method.
5597 // Search the class, its superclasses, etc., for instance methods.
5614 // If we have an external source, load the entire class method
5687 // If we have an external source, load the entire class method
5823 if (ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(*D))
5824 if ((!OnlyForwardDeclarations || !Class->hasDefinition()) &&
5825 (!OnlyUnimplemented || !Class->getImplementation()))
5826 Results.AddResult(Result(Class, Results.getBasePriority(Class), 0),
5857 // Make sure that we ignore the class we're currently defining.
5909 if (ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurClass)){
5911 Cat = Class->visible_categories_begin(),
5912 CatEnd = Class->visible_categories_end();
5945 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(CurClass);
5946 if (!Class)
5954 // declarations in this class and any of its superclasses, except for
5955 // already-implemented categories in the class itself.
5959 while (Class) {
5961 Cat = Class->visible_categories_begin(),
5962 CatEnd = Class->visible_categories_end();
5970 Class = Class->getSuperClass();
6036 ObjCInterfaceDecl *Class = 0;
6039 Class = ClassImpl->getClassInterface();
6041 Class = cast<ObjCCategoryImplDecl>(Container)->getCategoryDecl()
6046 if (Class) {
6048 = Class->FindPropertyDeclaration(PropertyName)) {
6057 // Add all of the instance variables in this class and its superclasses.
6065 for(; Class; Class = Class->getSuperClass()) {
6066 for (ObjCIvarDecl *Ivar = Class->all_declared_ivar_begin(); Ivar;
6114 // with the "in original class" flag.
6144 // Add methods from any class extensions and categories.
6170 // If this category is the original class, jump to the interface.
6227 /// \brief Determine whether the given class is or inherits from a class by
6229 static bool InheritsFromClassNamed(ObjCInterfaceDecl *Class,
6231 if (!Class)
6234 if (Class->getIdentifier() && Class->getIdentifier()->getName() == Name)
6237 return InheritsFromClassNamed(Class->getSuperClass(), Name);
6995 // the properties in this class and its categories.
7043 // If we have an external source, load the entire class method