clang API Documentation
Represents an ObjC class declaration. More...
#include <DeclObjC.h>
Classes | |
struct | DefinitionData |
class | filtered_category_iterator |
Iterator that walks over the list of categories, filtering out those that do not meet specific criteria. More... | |
Public Types | |
typedef ObjCProtocolList::iterator | protocol_iterator |
typedef llvm::iterator_range < protocol_iterator > | protocol_range |
typedef ObjCProtocolList::loc_iterator | protocol_loc_iterator |
typedef llvm::iterator_range < protocol_loc_iterator > | protocol_loc_range |
typedef ObjCList < ObjCProtocolDecl >::iterator | all_protocol_iterator |
typedef llvm::iterator_range < all_protocol_iterator > | all_protocol_range |
typedef specific_decl_iterator < ObjCIvarDecl > | ivar_iterator |
typedef llvm::iterator_range < specific_decl_iterator < ObjCIvarDecl > > | ivar_range |
typedef filtered_category_iterator < isVisibleCategory > | visible_categories_iterator |
Iterator that walks over the list of categories and extensions that are visible, i.e., not hidden in a non-imported submodule. | |
typedef llvm::iterator_range < visible_categories_iterator > | visible_categories_range |
typedef filtered_category_iterator < isKnownCategory > | known_categories_iterator |
Iterator that walks over all of the known categories and extensions, including those that are hidden. | |
typedef llvm::iterator_range < known_categories_iterator > | known_categories_range |
typedef filtered_category_iterator < isVisibleExtension > | visible_extensions_iterator |
Iterator that walks over all of the visible extensions, skipping any that are known but hidden. | |
typedef llvm::iterator_range < visible_extensions_iterator > | visible_extensions_range |
typedef filtered_category_iterator < isKnownExtension > | known_extensions_iterator |
Iterator that walks over all of the known extensions. | |
typedef llvm::iterator_range < known_extensions_iterator > | known_extensions_range |
typedef redeclarable_base::redecl_range | redecl_range |
typedef redeclarable_base::redecl_iterator | redecl_iterator |
Public Member Functions | |
SourceRange | getSourceRange () const override LLVM_READONLY |
Source range that this declaration covers. | |
void | setExternallyCompleted () |
Indicate that this Objective-C class is complete, but that the external AST source will be responsible for filling in its contents when a complete class is required. | |
void | setHasDesignatedInitializers () |
bool | hasDesignatedInitializers () const |
bool | declaresOrInheritsDesignatedInitializers () const |
const ObjCProtocolList & | getReferencedProtocols () const |
ObjCImplementationDecl * | getImplementation () const |
void | setImplementation (ObjCImplementationDecl *ImplD) |
ObjCCategoryDecl * | FindCategoryDeclaration (IdentifierInfo *CategoryId) const |
ObjCMethodDecl * | getCategoryInstanceMethod (Selector Sel) const |
ObjCMethodDecl * | getCategoryClassMethod (Selector Sel) const |
ObjCMethodDecl * | getCategoryMethod (Selector Sel, bool isInstance) const |
protocol_range | protocols () const |
protocol_iterator | protocol_begin () const |
protocol_iterator | protocol_end () const |
protocol_loc_range | protocol_locs () const |
protocol_loc_iterator | protocol_loc_begin () const |
protocol_loc_iterator | protocol_loc_end () const |
all_protocol_range | all_referenced_protocols () const |
all_protocol_iterator | all_referenced_protocol_begin () const |
all_protocol_iterator | all_referenced_protocol_end () const |
ivar_range | ivars () const |
ivar_iterator | ivar_begin () const |
ivar_iterator | ivar_end () const |
unsigned | ivar_size () const |
bool | ivar_empty () const |
ObjCIvarDecl * | all_declared_ivar_begin () |
const ObjCIvarDecl * | all_declared_ivar_begin () const |
void | setIvarList (ObjCIvarDecl *ivar) |
void | setProtocolList (ObjCProtocolDecl *const *List, unsigned Num, const SourceLocation *Locs, ASTContext &C) |
void | mergeClassExtensionProtocolList (ObjCProtocolDecl *const *List, unsigned Num, ASTContext &C) |
StringRef | getObjCRuntimeNameAsString () const |
void | getDesignatedInitializers (llvm::SmallVectorImpl< const ObjCMethodDecl * > &Methods) const |
bool | isDesignatedInitializer (Selector Sel, const ObjCMethodDecl **InitMethod=nullptr) const |
bool | isThisDeclarationADefinition () const |
Determine whether this particular declaration of this class is actually also a definition. | |
bool | hasDefinition () const |
Determine whether this class has been defined. | |
ObjCInterfaceDecl * | getDefinition () |
Retrieve the definition of this class, or NULL if this class has been forward-declared (with @class) but not yet defined (with @interface). | |
const ObjCInterfaceDecl * | getDefinition () const |
Retrieve the definition of this class, or NULL if this class has been forward-declared (with @class) but not yet defined (with @interface). | |
void | startDefinition () |
Starts the definition of this Objective-C class, taking it from a forward declaration (@class) to a definition (@interface). | |
ObjCInterfaceDecl * | getSuperClass () const |
void | setSuperClass (ObjCInterfaceDecl *superCls) |
visible_categories_range | visible_categories () const |
visible_categories_iterator | visible_categories_begin () const |
Retrieve an iterator to the beginning of the visible-categories list. | |
visible_categories_iterator | visible_categories_end () const |
Retrieve an iterator to the end of the visible-categories list. | |
bool | visible_categories_empty () const |
Determine whether the visible-categories list is empty. | |
known_categories_range | known_categories () const |
known_categories_iterator | known_categories_begin () const |
Retrieve an iterator to the beginning of the known-categories list. | |
known_categories_iterator | known_categories_end () const |
Retrieve an iterator to the end of the known-categories list. | |
bool | known_categories_empty () const |
Determine whether the known-categories list is empty. | |
visible_extensions_range | visible_extensions () const |
visible_extensions_iterator | visible_extensions_begin () const |
Retrieve an iterator to the beginning of the visible-extensions list. | |
visible_extensions_iterator | visible_extensions_end () const |
Retrieve an iterator to the end of the visible-extensions list. | |
bool | visible_extensions_empty () const |
Determine whether the visible-extensions list is empty. | |
known_extensions_range | known_extensions () const |
known_extensions_iterator | known_extensions_begin () const |
Retrieve an iterator to the beginning of the known-extensions list. | |
known_extensions_iterator | known_extensions_end () const |
Retrieve an iterator to the end of the known-extensions list. | |
bool | known_extensions_empty () const |
Determine whether the known-extensions list is empty. | |
ObjCCategoryDecl * | getCategoryListRaw () const |
Retrieve the raw pointer to the start of the category/extension list. | |
void | setCategoryListRaw (ObjCCategoryDecl *category) |
Set the raw pointer to the start of the category/extension list. | |
ObjCPropertyDecl * | FindPropertyVisibleInPrimaryClass (IdentifierInfo *PropertyId) const |
void | collectPropertiesToImplement (PropertyMap &PM, PropertyDeclOrder &PO) const override |
bool | isSuperClassOf (const ObjCInterfaceDecl *I) const |
bool | isArcWeakrefUnavailable () const |
const ObjCInterfaceDecl * | isObjCRequiresPropertyDefs () const |
ObjCIvarDecl * | lookupInstanceVariable (IdentifierInfo *IVarName, ObjCInterfaceDecl *&ClassDeclared) |
ObjCIvarDecl * | lookupInstanceVariable (IdentifierInfo *IVarName) |
ObjCProtocolDecl * | lookupNestedProtocol (IdentifierInfo *Name) |
ObjCMethodDecl * | lookupMethod (Selector Sel, bool isInstance, bool shallowCategoryLookup=false, bool followSuper=true, const ObjCCategoryDecl *C=nullptr) const |
ObjCMethodDecl * | lookupInstanceMethod (Selector Sel) const |
Lookup an instance method for a given selector. | |
ObjCMethodDecl * | lookupClassMethod (Selector Sel) const |
Lookup a class method for a given selector. | |
ObjCInterfaceDecl * | lookupInheritedClass (const IdentifierInfo *ICName) |
ObjCMethodDecl * | lookupPrivateMethod (const Selector &Sel, bool Instance=true) const |
Lookup a method in the classes implementation hierarchy. | |
ObjCMethodDecl * | lookupPrivateClassMethod (const Selector &Sel) |
ObjCMethodDecl * | lookupPropertyAccessor (const Selector Sel, const ObjCCategoryDecl *Cat) const |
Lookup a setter or getter in the class hierarchy, including in all categories except for category passed as argument. | |
SourceLocation | getEndOfDefinitionLoc () const |
void | setEndOfDefinitionLoc (SourceLocation LE) |
void | setSuperClassLoc (SourceLocation Loc) |
SourceLocation | getSuperClassLoc () const |
bool | isImplicitInterfaceDecl () const |
bool | ClassImplementsProtocol (ObjCProtocolDecl *lProto, bool lookupCategory, bool RHSIsQualifiedID=false) |
ObjCInterfaceDecl * | getCanonicalDecl () override |
Retrieves the canonical declaration of this Objective-C class. | |
const ObjCInterfaceDecl * | getCanonicalDecl () const |
const Type * | getTypeForDecl () const |
void | setTypeForDecl (const Type *TD) const |
Static Public Member Functions | |
static ObjCInterfaceDecl * | Create (const ASTContext &C, DeclContext *DC, SourceLocation atLoc, IdentifierInfo *Id, ObjCInterfaceDecl *PrevDecl, SourceLocation ClassLoc=SourceLocation(), bool isInternal=false) |
static ObjCInterfaceDecl * | CreateDeserialized (const ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTContext |
class | ASTReader |
class | ASTDeclReader |
class | ASTDeclWriter |
Represents an ObjC class declaration.
For example:
// MostPrimitive declares no super class (not particularly useful). \@interface MostPrimitive // no instance variables or methods. \@end // NSResponder inherits from NSObject & implements NSCoding (a protocol). \@interface NSResponder : NSObject \<NSCoding> { // instance variables are represented by ObjCIvarDecl. id nextResponder; // nextResponder instance variable. } - (NSResponder *)nextResponder; // return a pointer to NSResponder. - (void)mouseMoved:(NSEvent *)theEvent; // return void, takes a pointer \@end // to an NSEvent.
Unlike C/C++, forward class declarations are accomplished with @class. Unlike C/C++, @class allows for a list of classes to be forward declared. Unlike C++, ObjC is a single-rooted class model. In Cocoa, classes typically inherit from NSObject (an exception is NSProxy).
Definition at line 664 of file DeclObjC.h.
typedef ObjCList<ObjCProtocolDecl>::iterator clang::ObjCInterfaceDecl::all_protocol_iterator |
Definition at line 881 of file DeclObjC.h.
typedef llvm::iterator_range<all_protocol_iterator> clang::ObjCInterfaceDecl::all_protocol_range |
Definition at line 882 of file DeclObjC.h.
Definition at line 913 of file DeclObjC.h.
typedef llvm::iterator_range<specific_decl_iterator<ObjCIvarDecl> > clang::ObjCInterfaceDecl::ivar_range |
Definition at line 914 of file DeclObjC.h.
typedef filtered_category_iterator<isKnownCategory> clang::ObjCInterfaceDecl::known_categories_iterator |
Iterator that walks over all of the known categories and extensions, including those that are hidden.
Definition at line 1134 of file DeclObjC.h.
typedef llvm::iterator_range<known_categories_iterator> clang::ObjCInterfaceDecl::known_categories_range |
Definition at line 1136 of file DeclObjC.h.
typedef filtered_category_iterator<isKnownExtension> clang::ObjCInterfaceDecl::known_extensions_iterator |
Iterator that walks over all of the known extensions.
Definition at line 1204 of file DeclObjC.h.
typedef llvm::iterator_range<known_extensions_iterator> clang::ObjCInterfaceDecl::known_extensions_range |
Definition at line 1206 of file DeclObjC.h.
Definition at line 826 of file DeclObjC.h.
Definition at line 853 of file DeclObjC.h.
typedef llvm::iterator_range<protocol_loc_iterator> clang::ObjCInterfaceDecl::protocol_loc_range |
Definition at line 854 of file DeclObjC.h.
typedef llvm::iterator_range<protocol_iterator> clang::ObjCInterfaceDecl::protocol_range |
Definition at line 827 of file DeclObjC.h.
typedef redeclarable_base::redecl_iterator clang::ObjCInterfaceDecl::redecl_iterator |
Definition at line 1349 of file DeclObjC.h.
Reimplemented from clang::Redeclarable< ObjCInterfaceDecl >.
Definition at line 1348 of file DeclObjC.h.
typedef filtered_category_iterator<isVisibleCategory> clang::ObjCInterfaceDecl::visible_categories_iterator |
Iterator that walks over the list of categories and extensions that are visible, i.e., not hidden in a non-imported submodule.
Definition at line 1099 of file DeclObjC.h.
typedef llvm::iterator_range<visible_categories_iterator> clang::ObjCInterfaceDecl::visible_categories_range |
Definition at line 1102 of file DeclObjC.h.
typedef filtered_category_iterator<isVisibleExtension> clang::ObjCInterfaceDecl::visible_extensions_iterator |
Iterator that walks over all of the visible extensions, skipping any that are known but hidden.
Definition at line 1169 of file DeclObjC.h.
typedef llvm::iterator_range<visible_extensions_iterator> clang::ObjCInterfaceDecl::visible_extensions_range |
Definition at line 1172 of file DeclObjC.h.
all_declared_ivar_begin - return first ivar declared in this class, its extensions and its implementation. Lazily build the list on first access.
Caveat: The list returned by this method reflects the current state of the parser. The cache will be updated for every ivar added by an extension or the implementation when they are encountered. See also ObjCIvarDecl::Create().
Definition at line 1274 of file DeclObjC.cpp.
References getImplementation(), hasDefinition(), ivar_begin(), ivar_empty(), ivar_end(), known_extensions(), and clang::ObjCIvarDecl::setNextIvar().
Referenced by all_declared_ivar_begin(), clang::Sema::CodeCompleteObjCPropertySynthesizeIvar(), clang::Sema::CollectIvarsToConstructOrDestruct(), clang::ASTContext::DeepCollectObjCIvars(), emitCXXDestructMethod(), FindIvarInterface(), LookupFieldBitOffset(), and needsDestructMethod().
const ObjCIvarDecl* clang::ObjCInterfaceDecl::all_declared_ivar_begin | ( | ) | const [inline] |
Definition at line 939 of file DeclObjC.h.
References all_declared_ivar_begin().
all_protocol_iterator clang::ObjCInterfaceDecl::all_referenced_protocol_begin | ( | ) | const [inline] |
Definition at line 888 of file DeclObjC.h.
References hasDefinition(), and protocol_begin().
Referenced by all_referenced_protocols().
all_protocol_iterator clang::ObjCInterfaceDecl::all_referenced_protocol_end | ( | ) | const [inline] |
Definition at line 900 of file DeclObjC.h.
References hasDefinition(), and protocol_end().
Referenced by all_referenced_protocols().
all_protocol_range clang::ObjCInterfaceDecl::all_referenced_protocols | ( | ) | const [inline] |
Definition at line 884 of file DeclObjC.h.
References all_referenced_protocol_begin(), and all_referenced_protocol_end().
Referenced by collectPropertiesToImplement(), DiagnosePropertyMismatchDeclInProtocols(), clang::Sema::DiagnoseUnimplementedProperties(), clang::ObjCContainerDecl::FindPropertyDeclaration(), FindPropertyVisibleInPrimaryClass(), findProtocolsWithExplicitImpls(), lookupNestedProtocol(), and mergeClassExtensionProtocolList().
bool ObjCInterfaceDecl::ClassImplementsProtocol | ( | ObjCProtocolDecl * | lProto, |
bool | lookupCategory, | ||
bool | RHSIsQualifiedID = false |
||
) |
ClassImplementsProtocol - Checks that 'lProto' protocol has been implemented in IDecl class, its super class or categories (if lookupCategory is true).
Definition at line 1385 of file DeclObjC.cpp.
References ClassImplementsProtocol(), clang::Decl::getASTContext(), getSuperClass(), hasDefinition(), clang::ASTContext::ProtocolCompatibleWithProtocol(), protocols(), and visible_categories().
Referenced by ClassImplementsProtocol(), clang::Sema::CreatePropertyDecl(), and clang::ASTContext::ObjCObjectAdoptsQTypeProtocols().
static bool clang::ObjCInterfaceDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::ObjCContainerDecl.
Definition at line 1365 of file DeclObjC.h.
References classofKind(), and clang::Decl::getKind().
static bool clang::ObjCInterfaceDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::ObjCContainerDecl.
Definition at line 1366 of file DeclObjC.h.
Referenced by classof().
void ObjCInterfaceDecl::collectPropertiesToImplement | ( | PropertyMap & | PM, |
PropertyDeclOrder & | PO | ||
) | const [override, virtual] |
This routine collects list of properties to be implemented in the class. This includes, class's and its conforming protocols' properties. Note, the superclass's properties are not included in the list.
Reimplemented from clang::ObjCContainerDecl.
Definition at line 267 of file DeclObjC.cpp.
References all_referenced_protocols(), and clang::ObjCContainerDecl::properties().
Referenced by clang::Sema::DefaultSynthesizeProperties(), and clang::Sema::DiagnoseUnimplementedProperties().
ObjCInterfaceDecl * ObjCInterfaceDecl::Create | ( | const ASTContext & | C, |
DeclContext * | DC, | ||
SourceLocation | atLoc, | ||
IdentifierInfo * | Id, | ||
ObjCInterfaceDecl * | PrevDecl, | ||
SourceLocation | ClassLoc = SourceLocation() , |
||
bool | isInternal = false |
||
) | [static] |
Definition at line 1144 of file DeclObjC.cpp.
References AttributeLangSupport::C, clang::ASTContext::getLangOpts(), and clang::ASTContext::getObjCInterfaceType().
Referenced by clang::Sema::ActOnForwardClassDeclaration(), clang::Sema::ActOnStartClassImplementation(), clang::Sema::ActOnStartClassInterface(), clang::Sema::BuildObjCArrayLiteral(), clang::Sema::BuildObjCBoxedExpr(), clang::Sema::BuildObjCDictionaryLiteral(), clang::Sema::BuildObjCStringLiteral(), getNSNumberFactoryMethod(), clang::ASTContext::getObjCProtocolDecl(), and clang::ASTNodeImporter::VisitObjCInterfaceDecl().
ObjCInterfaceDecl * ObjCInterfaceDecl::CreateDeserialized | ( | const ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Definition at line 1158 of file DeclObjC.cpp.
References AttributeLangSupport::C, and clang::ASTContext::getLangOpts().
bool clang::ObjCInterfaceDecl::declaresOrInheritsDesignatedInitializers | ( | ) | const [inline] |
Returns true if this interface decl declares a designated initializer or it inherites one from its super class.
Definition at line 801 of file DeclObjC.h.
References hasDesignatedInitializers().
ObjCCategoryDecl * ObjCInterfaceDecl::FindCategoryDeclaration | ( | IdentifierInfo * | CategoryId | ) | const |
FindCategoryDeclaration - Finds category declaration in the list of categories for this class and returns it. Name of the category is passed in 'CategoryId'. If category not found, return 0;
Definition at line 1346 of file DeclObjC.cpp.
References hasDefinition(), and visible_categories().
Referenced by clang::Sema::ActOnPropertyImplDecl(), clang::Sema::ActOnStartCategoryImplementation(), clang::Sema::ActOnStartCategoryInterface(), clang::ObjCImplDecl::setClassInterface(), and clang::ASTNodeImporter::VisitObjCCategoryDecl().
ObjCPropertyDecl * ObjCInterfaceDecl::FindPropertyVisibleInPrimaryClass | ( | IdentifierInfo * | PropertyId | ) | const |
FindPropertyVisibleInPrimaryClass - Finds declaration of the property with name 'PropertyId' in the primary class; including those in protocols (direct or indirect) used by the primary class.
Definition at line 246 of file DeclObjC.cpp.
References all_referenced_protocols(), clang::ObjCPropertyDecl::findPropertyDecl(), hasDefinition(), and P.
Referenced by clang::Sema::HandlePropertyInClassExtension().
ObjCInterfaceDecl* clang::ObjCInterfaceDecl::getCanonicalDecl | ( | ) | [inline, override, virtual] |
Retrieves the canonical declaration of this Objective-C class.
Reimplemented from clang::Decl.
Definition at line 1358 of file DeclObjC.h.
References clang::Redeclarable< ObjCInterfaceDecl >::getFirstDecl().
Referenced by clang::ASTNodeImporter::VisitObjCImplementationDecl(), and clang::ASTDeclReader::VisitObjCInterfaceDecl().
const ObjCInterfaceDecl* clang::ObjCInterfaceDecl::getCanonicalDecl | ( | ) | const [inline] |
Reimplemented from clang::Decl.
Definition at line 1359 of file DeclObjC.h.
References clang::Redeclarable< ObjCInterfaceDecl >::getFirstDecl().
ObjCMethodDecl * ObjCInterfaceDecl::getCategoryClassMethod | ( | Selector | Sel | ) | const |
Definition at line 1372 of file DeclObjC.cpp.
References visible_categories().
Referenced by clang::Sema::ActOnClassPropertyRefExpr(), and lookupPrivateMethod().
ObjCMethodDecl * ObjCInterfaceDecl::getCategoryInstanceMethod | ( | Selector | Sel | ) | const |
Definition at line 1362 of file DeclObjC.cpp.
References visible_categories().
Referenced by lookupPrivateMethod().
ObjCCategoryDecl* clang::ObjCInterfaceDecl::getCategoryListRaw | ( | ) | const [inline] |
Retrieve the raw pointer to the start of the category/extension list.
Definition at line 1231 of file DeclObjC.h.
References hasDefinition().
Referenced by clang::ObjCCategoryDecl::Create(), known_categories_begin(), known_extensions_begin(), visible_categories_begin(), visible_extensions_begin(), and clang::ASTDeclWriter::VisitObjCInterfaceDecl().
ObjCMethodDecl* clang::ObjCInterfaceDecl::getCategoryMethod | ( | Selector | Sel, |
bool | isInstance | ||
) | const [inline] |
Definition at line 821 of file DeclObjC.h.
References clang::ObjCContainerDecl::getClassMethod(), and clang::ObjCContainerDecl::getInstanceMethod().
ObjCInterfaceDecl* clang::ObjCInterfaceDecl::getDefinition | ( | ) | [inline] |
Retrieve the definition of this class, or NULL if this class has been forward-declared (with @class) but not yet defined (with @interface).
Definition at line 1010 of file DeclObjC.h.
References hasDefinition().
Referenced by clang::Sema::ActOnStartClassInterface(), clang::ASTWriter::AddedObjCCategoryToInterface(), clang::ObjCCategoryImplDecl::Create(), clang::ObjCImplementationDecl::Create(), getImplementation(), clang::Sema::getObjCInterfaceDecl(), clang::ASTContext::getObjCInterfaceType(), clang::DeclContext::getPrimaryContext(), clang::ASTImporter::ImportContext(), clang::ASTNodeImporter::ImportDefinition(), isThisDeclarationADefinition(), ivar_begin(), ivar_end(), setImplementation(), setSuperClass(), and clang::ASTNodeImporter::VisitObjCInterfaceDecl().
const ObjCInterfaceDecl* clang::ObjCInterfaceDecl::getDefinition | ( | ) | const [inline] |
Retrieve the definition of this class, or NULL if this class has been forward-declared (with @class) but not yet defined (with @interface).
Definition at line 1017 of file DeclObjC.h.
References hasDefinition().
void ObjCInterfaceDecl::getDesignatedInitializers | ( | llvm::SmallVectorImpl< const ObjCMethodDecl * > & | Methods | ) | const |
Returns the designated initializers for the interface.
If this declaration does not have methods marked as designated initializers then the interface inherits the designated initializers of its super class.
Definition at line 409 of file DeclObjC.cpp.
References clang::ObjCContainerDecl::instance_methods(), isThisDeclarationADefinition(), and visible_extensions().
Referenced by clang::Sema::DiagnoseMissingDesignatedInitOverrides().
SourceLocation clang::ObjCInterfaceDecl::getEndOfDefinitionLoc | ( | ) | const [inline] |
Definition at line 1322 of file DeclObjC.h.
References clang::Decl::getLocation(), and hasDefinition().
Referenced by clang::ObjCMethodCall::canBeOverridenInSubclass(), and clang::ASTDeclWriter::VisitObjCInterfaceDecl().
Definition at line 1234 of file DeclObjC.cpp.
References clang::Decl::getASTContext(), getDefinition(), and clang::ASTContext::getObjCImplementation().
Referenced by clang::Sema::ActOnStartCategoryInterface(), clang::Sema::ActOnStartClassImplementation(), AddObjCMethods(), all_declared_ivar_begin(), clang::CodeGen::CGObjCRuntime::ComputeBitfieldBitOffset(), clang::ASTContext::CountNonClassIvars(), createObjCPropertyGetter(), clang::ASTNodeImporter::ImportDefinition(), isIntroducingInitializers(), lookupPrivateMethod(), and clang::ASTNodeImporter::VisitObjCImplementationDecl().
StringRef ObjCInterfaceDecl::getObjCRuntimeNameAsString | ( | ) | const |
Produce a name to be used for class's metadata. It comes either via objc_runtime_name attribute or class name.
Definition at line 1218 of file DeclObjC.cpp.
References clang::NamedDecl::getName().
const ObjCProtocolList& clang::ObjCInterfaceDecl::getReferencedProtocols | ( | ) | const [inline] |
Definition at line 805 of file DeclObjC.h.
References hasDefinition().
Referenced by rewriteToObjCInterfaceDecl().
SourceRange clang::ObjCInterfaceDecl::getSourceRange | ( | ) | const [inline, override, virtual] |
Source range that this declaration covers.
Reimplemented from clang::ObjCContainerDecl.
Definition at line 779 of file DeclObjC.h.
References clang::ObjCContainerDecl::getAtStartLoc(), clang::Decl::getLocation(), and isThisDeclarationADefinition().
ObjCInterfaceDecl* clang::ObjCInterfaceDecl::getSuperClass | ( | ) | const [inline] |
Definition at line 1025 of file DeclObjC.h.
References hasDefinition().
Referenced by clang::Sema::ActOnClassPropertyRefExpr(), clang::Sema::ActOnProperty(), clang::Sema::ActOnStartClassImplementation(), clang::Sema::ActOnStartOfObjCMethodDef(), clang::Sema::ActOnSuperMessage(), AddObjCMethods(), AddSuperSendCompletion(), clang::ASTContext::areCommonBaseCompatible(), clang::ObjCMethodCall::canBeOverridenInSubclass(), clang::Sema::CheckCategoryVsClassMethodMatches(), checkObjCDealloc(), CheckObjCInstMethSignature(), CheckProtocolMethodDefs(), ClassImplementsProtocol(), clang::Sema::CodeCompleteObjCImplementationCategory(), clang::Sema::CodeCompleteObjCPropertySynthesizeIvar(), clang::Sema::CodeCompleteObjCSuperMessage(), clang::ASTContext::CollectInheritedProtocols(), CollectOverriddenMethodsRecurse(), CollectSuperClassPropertyImplementations(), clang::ASTContext::DeepCollectObjCIvars(), DiagnoseDirectIsaAccess(), clang::Sema::DiagnoseMissingDesignatedInitOverrides(), DiagnosePropertyMismatchDeclInProtocols(), FindIvarInterface(), findKnownClass(), clang::ObjCContainerDecl::FindPropertyDeclaration(), findProtocolsWithExplicitImpls(), GetAssumedMessageSendExprType(), hasObjCExceptionAttribute(), clang::ObjCContainerDecl::HasUserDeclaredSetterMethod(), clang::ASTNodeImporter::ImportDefinition(), InheritsFromClassNamed(), isArcWeakrefUnavailable(), clang::ento::cocoa::isCocoaObjectRef(), isObjCRequiresPropertyDefs(), isSubclass(), isSuperClassOf(), lookupInheritedClass(), lookupInstanceVariable(), lookupMethod(), lookupNestedProtocol(), lookupPrivateMethod(), rewriteToObjCInterfaceDecl(), shouldRunOnFunctionOrMethod(), SuperClassImplementsProperty(), and clang::ASTDeclWriter::VisitObjCInterfaceDecl().
SourceLocation clang::ObjCInterfaceDecl::getSuperClassLoc | ( | ) | const [inline] |
Definition at line 1332 of file DeclObjC.h.
Referenced by clang::ASTNodeImporter::ImportDefinition(), rewriteToObjCInterfaceDecl(), and clang::ASTDeclWriter::VisitObjCInterfaceDecl().
const Type* clang::ObjCInterfaceDecl::getTypeForDecl | ( | ) | const [inline] |
Definition at line 1362 of file DeclObjC.h.
Referenced by clang::ASTDeclWriter::VisitObjCInterfaceDecl().
bool clang::ObjCInterfaceDecl::hasDefinition | ( | ) | const [inline] |
Determine whether this class has been defined.
Definition at line 991 of file DeclObjC.h.
References clang::NamedDecl::getIdentifier(), and clang::Decl::updateOutOfDate().
Referenced by clang::Sema::ActOnStartCategoryImplementation(), clang::Sema::ActOnStartClassImplementation(), clang::Sema::ActOnStartClassInterface(), AddObjCMethods(), all_declared_ivar_begin(), all_referenced_protocol_begin(), all_referenced_protocol_end(), clang::arcmt::trans::canApplyWeak(), clang::Sema::checkInitMethod(), ClassImplementsProtocol(), clang::ObjCCategoryDecl::Create(), clang::ObjCCategoryImplDecl::Create(), clang::ObjCImplementationDecl::Create(), clang::Sema::DiagnoseAssignmentResult(), FindCategoryDeclaration(), FindPropertyVisibleInPrimaryClass(), getCategoryListRaw(), getDefinition(), getEndOfDefinitionLoc(), getNSNumberFactoryMethod(), getReferencedProtocols(), getSuperClass(), clang::ento::cocoa::isCocoaObjectRef(), isImplicitInterfaceDecl(), clang::Type::isIncompleteType(), lookupInheritedClass(), lookupInstanceVariable(), lookupMethod(), lookupPrivateMethod(), protocol_begin(), protocol_end(), protocol_loc_begin(), protocol_loc_end(), clang::ASTContext::QIdProtocolsAdoptObjCObjectProtocols(), setExternallyCompleted(), and setSuperClass().
Returns true if this interface decl contains at least one initializer marked with the 'objc_designated_initializer' attribute.
Definition at line 1207 of file DeclObjC.cpp.
References isThisDeclarationADefinition().
Referenced by declaresOrInheritsDesignatedInitializers(), and clang::Sema::DiagnoseMissingDesignatedInitOverrides().
isArcWeakrefUnavailable - Checks for a class or one of its super classes to be incompatible with __weak references. Returns true if it is.
Definition at line 280 of file DeclObjC.cpp.
References getSuperClass(), and clang::Decl::hasAttr().
Referenced by clang::Sema::ActOnPropertyImplDecl(), and clang::arcmt::trans::canApplyWeak().
bool ObjCInterfaceDecl::isDesignatedInitializer | ( | Selector | Sel, |
const ObjCMethodDecl ** | InitMethod = nullptr |
||
) | const |
Returns true if the given selector is a designated initializer for the interface.
If this declaration does not have methods marked as designated initializers then the interface inherits the designated initializers of its super class.
InitMethod | if non-null and the function returns true, it receives the method that was marked as a designated initializer. |
Definition at line 431 of file DeclObjC.cpp.
References clang::ObjCContainerDecl::getInstanceMethod(), isThisDeclarationADefinition(), and visible_extensions().
bool clang::ObjCInterfaceDecl::isImplicitInterfaceDecl | ( | ) | const [inline] |
isImplicitInterfaceDecl - check that this is an implicitly declared ObjCInterfaceDecl node. This is for legacy objective-c @implementation declaration without an @interface declaration.
Definition at line 1337 of file DeclObjC.h.
References hasDefinition(), and clang::Decl::isImplicit().
Referenced by clang::Sema::CheckImplementationIvars(), and clang::ASTNodeImporter::VisitObjCInterfaceDecl().
const ObjCInterfaceDecl * ObjCInterfaceDecl::isObjCRequiresPropertyDefs | ( | ) | const |
isObjCRequiresPropertyDefs - Checks that a class or one of its super classes must not be auto-synthesized. Returns class decl. if it must not be; 0, otherwise.
Definition at line 290 of file DeclObjC.cpp.
References getSuperClass(), and clang::Decl::hasAttr().
Referenced by clang::Sema::ActOnPropertyImplDecl().
bool clang::ObjCInterfaceDecl::isSuperClassOf | ( | const ObjCInterfaceDecl * | I | ) | const [inline] |
isSuperClassOf - Return true if this class is the specified class or is a super class of the specified interface class.
Definition at line 1256 of file DeclObjC.h.
References clang::declaresSameEntity(), and getSuperClass().
Referenced by clang::ASTContext::canAssignObjCInterfaces(), clang::ASTContext::canAssignObjCInterfacesInBlockPointer(), clang::Sema::checkInitMethod(), CheckObjCBridgeCFCast(), CheckObjCBridgeNSCast(), clang::Sema::IsSimplyAccessible(), and LookupMemberExpr().
bool clang::ObjCInterfaceDecl::isThisDeclarationADefinition | ( | ) | const [inline] |
Determine whether this particular declaration of this class is actually also a definition.
Definition at line 986 of file DeclObjC.h.
References getDefinition().
Referenced by getDesignatedInitializers(), getSourceRange(), hasDesignatedInitializers(), isDesignatedInitializer(), setHasDesignatedInitializers(), clang::ASTDeclWriter::VisitObjCInterfaceDecl(), and clang::ASTNodeImporter::VisitObjCInterfaceDecl().
ivar_iterator clang::ObjCInterfaceDecl::ivar_begin | ( | ) | const [inline] |
Definition at line 917 of file DeclObjC.h.
References getDefinition().
Referenced by all_declared_ivar_begin(), clang::Sema::CheckImplementationIvars(), DiagnoseDirectIsaAccess(), ivar_empty(), ivar_size(), and ivars().
bool clang::ObjCInterfaceDecl::ivar_empty | ( | ) | const [inline] |
Definition at line 936 of file DeclObjC.h.
References ivar_begin(), and ivar_end().
Referenced by all_declared_ivar_begin().
ivar_iterator clang::ObjCInterfaceDecl::ivar_end | ( | ) | const [inline] |
Definition at line 924 of file DeclObjC.h.
References getDefinition().
Referenced by all_declared_ivar_begin(), clang::Sema::CheckImplementationIvars(), ivar_empty(), ivar_size(), and ivars().
unsigned clang::ObjCInterfaceDecl::ivar_size | ( | ) | const [inline] |
Definition at line 932 of file DeclObjC.h.
References ivar_begin(), and ivar_end().
ivar_range clang::ObjCInterfaceDecl::ivars | ( | ) | const [inline] |
Definition at line 916 of file DeclObjC.h.
References ivar_begin(), and ivar_end().
Referenced by checkObjCDealloc(), checkObjCUnusedIvar(), clang::ASTContext::DeepCollectObjCIvars(), and clang::Sema::DiagnoseDuplicateIvars().
known_categories_range clang::ObjCInterfaceDecl::known_categories | ( | ) | const [inline] |
Definition at line 1138 of file DeclObjC.h.
References known_categories_begin(), and known_categories_end().
Referenced by AddObjCMethods(), AddSuperSendCompletion(), and clang::ASTNodeImporter::ImportDefinition().
known_categories_iterator clang::ObjCInterfaceDecl::known_categories_begin | ( | ) | const [inline] |
Retrieve an iterator to the beginning of the known-categories list.
Definition at line 1145 of file DeclObjC.h.
References getCategoryListRaw().
Referenced by known_categories(), and known_categories_empty().
bool clang::ObjCInterfaceDecl::known_categories_empty | ( | ) | const [inline] |
Determine whether the known-categories list is empty.
Definition at line 1155 of file DeclObjC.h.
References known_categories_begin(), and known_categories_end().
known_categories_iterator clang::ObjCInterfaceDecl::known_categories_end | ( | ) | const [inline] |
Retrieve an iterator to the end of the known-categories list.
Definition at line 1150 of file DeclObjC.h.
Referenced by known_categories(), and known_categories_empty().
known_extensions_range clang::ObjCInterfaceDecl::known_extensions | ( | ) | const [inline] |
Definition at line 1208 of file DeclObjC.h.
References known_extensions_begin(), and known_extensions_end().
Referenced by clang::Sema::ActOnFields(), clang::Sema::ActOnPropertyImplDecl(), addRedeclaredMethods(), all_declared_ivar_begin(), clang::ASTContext::CountNonClassIvars(), and clang::Sema::HandlePropertyInClassExtension().
known_extensions_iterator clang::ObjCInterfaceDecl::known_extensions_begin | ( | ) | const [inline] |
Retrieve an iterator to the beginning of the known-extensions list.
Definition at line 1215 of file DeclObjC.h.
References getCategoryListRaw().
Referenced by known_extensions(), and known_extensions_empty().
bool clang::ObjCInterfaceDecl::known_extensions_empty | ( | ) | const [inline] |
Determine whether the known-extensions list is empty.
Definition at line 1225 of file DeclObjC.h.
References known_extensions_begin(), and known_extensions_end().
known_extensions_iterator clang::ObjCInterfaceDecl::known_extensions_end | ( | ) | const [inline] |
Retrieve an iterator to the end of the known-extensions list.
Definition at line 1220 of file DeclObjC.h.
Referenced by known_extensions(), and known_extensions_empty().
ObjCMethodDecl* clang::ObjCInterfaceDecl::lookupClassMethod | ( | Selector | Sel | ) | const [inline] |
Lookup a class method for a given selector.
Definition at line 1298 of file DeclObjC.h.
References lookupMethod().
Referenced by clang::Sema::ActOnClassPropertyRefExpr(), clang::Sema::BuildClassMessage(), getNSNumberFactoryMethod(), and LookupMemberExpr().
ObjCInterfaceDecl * ObjCInterfaceDecl::lookupInheritedClass | ( | const IdentifierInfo * | ICName | ) |
lookupInheritedClass - This method returns ObjCInterfaceDecl * of the super class whose name is passed as argument. If it is not one of the super classes the it returns NULL.
Definition at line 513 of file DeclObjC.cpp.
References clang::NamedDecl::getIdentifier(), getSuperClass(), and hasDefinition().
Referenced by CheckProtocolMethodDefs().
ObjCMethodDecl* clang::ObjCInterfaceDecl::lookupInstanceMethod | ( | Selector | Sel | ) | const [inline] |
Lookup an instance method for a given selector.
Definition at line 1293 of file DeclObjC.h.
References lookupMethod().
Referenced by clang::Sema::BuildInstanceMessage(), canRewriteToSubscriptSyntax(), clang::Sema::CheckObjCForCollectionOperand(), clang::Sema::HandleExprPropertyRefExpr(), and lookupPrivateMethod().
ObjCIvarDecl * ObjCInterfaceDecl::lookupInstanceVariable | ( | IdentifierInfo * | IVarName, |
ObjCInterfaceDecl *& | ClassDeclared | ||
) |
Definition at line 482 of file DeclObjC.cpp.
References clang::ObjCContainerDecl::getIvarDecl(), getSuperClass(), hasDefinition(), and visible_extensions().
Referenced by clang::Sema::ActOnPropertyImplDecl(), clang::Sema::DiagnoseDuplicateIvars(), clang::Sema::HandleExprPropertyRefExpr(), clang::Sema::LookupInObjCMethod(), lookupInstanceVariable(), and LookupMemberExpr().
ObjCIvarDecl* clang::ObjCInterfaceDecl::lookupInstanceVariable | ( | IdentifierInfo * | IVarName | ) | [inline] |
Definition at line 1278 of file DeclObjC.h.
References lookupInstanceVariable().
ObjCMethodDecl * ObjCInterfaceDecl::lookupMethod | ( | Selector | Sel, |
bool | isInstance, | ||
bool | shallowCategoryLookup = false , |
||
bool | followSuper = true , |
||
const ObjCCategoryDecl * | C = nullptr |
||
) | const |
lookupMethod - This method returns an instance/class method by looking in the class, its categories, and its super classes (using a linear search). When argument category "C" is specified, any implicit method found in this category is ignored.
Definition at line 544 of file DeclObjC.cpp.
References clang::ObjCList< T >::begin(), clang::ObjCList< T >::end(), clang::ObjCContainerDecl::getMethod(), getSuperClass(), hasDefinition(), clang::Decl::isImplicit(), protocols(), and visible_categories().
Referenced by clang::ObjCMethodCall::canBeOverridenInSubclass(), clang::Sema::CheckCategoryVsClassMethodMatches(), clang::Sema::checkObjCBridgeRelatedComponents(), CheckProtocolMethodDefs(), clang::Sema::GetIvarBackingPropertyAccessor(), clang::Sema::IvarBacksCurrentMethodAccessor(), lookupClassMethod(), lookupInstanceMethod(), and lookupPropertyAccessor().
Definition at line 532 of file DeclObjC.cpp.
References all_referenced_protocols(), getSuperClass(), lookupNestedProtocol(), and P.
Referenced by lookupNestedProtocol(), and PropertyMemoryAttribute().
ObjCMethodDecl* clang::ObjCInterfaceDecl::lookupPrivateClassMethod | ( | const Selector & | Sel | ) | [inline] |
Definition at line 1307 of file DeclObjC.h.
References lookupPrivateMethod().
Referenced by clang::Sema::ActOnClassPropertyRefExpr(), and clang::Sema::BuildClassMessage().
ObjCMethodDecl * ObjCInterfaceDecl::lookupPrivateMethod | ( | const Selector & | Sel, |
bool | Instance = true |
||
) | const |
Lookup a method in the classes implementation hierarchy.
Definition at line 602 of file DeclObjC.cpp.
References getCategoryClassMethod(), getCategoryInstanceMethod(), getImplementation(), getSuperClass(), hasDefinition(), lookupInstanceMethod(), and lookupPrivateMethod().
Referenced by clang::Sema::BuildInstanceMessage(), clang::Sema::CheckObjCForCollectionOperand(), clang::Sema::HandleExprPropertyRefExpr(), LookupMemberExpr(), lookupPrivateClassMethod(), and lookupPrivateMethod().
ObjCMethodDecl* clang::ObjCInterfaceDecl::lookupPropertyAccessor | ( | const Selector | Sel, |
const ObjCCategoryDecl * | Cat | ||
) | const [inline] |
Lookup a setter or getter in the class hierarchy, including in all categories except for category passed as argument.
Definition at line 1314 of file DeclObjC.h.
References lookupMethod().
Referenced by DiagnoseUnimplementedAccessor().
void ObjCInterfaceDecl::mergeClassExtensionProtocolList | ( | ObjCProtocolDecl *const * | List, |
unsigned | Num, | ||
ASTContext & | C | ||
) |
mergeClassExtensionProtocolList - Merge class extension's protocol list into the protocol list for this class.
Definition at line 300 of file DeclObjC.cpp.
References all_referenced_protocols(), AttributeLangSupport::C, P, and clang::ASTContext::ProtocolCompatibleWithProtocol().
Referenced by clang::Sema::ActOnStartCategoryInterface().
protocol_iterator clang::ObjCInterfaceDecl::protocol_begin | ( | ) | const [inline] |
Definition at line 832 of file DeclObjC.h.
References hasDefinition().
Referenced by all_referenced_protocol_begin(), clang::ASTNodeImporter::ImportDefinition(), and protocols().
protocol_iterator clang::ObjCInterfaceDecl::protocol_end | ( | ) | const [inline] |
Definition at line 842 of file DeclObjC.h.
References hasDefinition().
Referenced by all_referenced_protocol_end(), clang::ASTNodeImporter::ImportDefinition(), and protocols().
protocol_loc_iterator clang::ObjCInterfaceDecl::protocol_loc_begin | ( | ) | const [inline] |
Definition at line 859 of file DeclObjC.h.
References hasDefinition().
Referenced by clang::ASTNodeImporter::ImportDefinition(), and protocol_locs().
protocol_loc_iterator clang::ObjCInterfaceDecl::protocol_loc_end | ( | ) | const [inline] |
Definition at line 870 of file DeclObjC.h.
References hasDefinition().
Referenced by protocol_locs(), and rewriteToObjCInterfaceDecl().
protocol_loc_range clang::ObjCInterfaceDecl::protocol_locs | ( | ) | const [inline] |
Definition at line 856 of file DeclObjC.h.
References protocol_loc_begin(), and protocol_loc_end().
Referenced by clang::ASTDeclWriter::VisitObjCInterfaceDecl().
protocol_range clang::ObjCInterfaceDecl::protocols | ( | ) | const [inline] |
Definition at line 829 of file DeclObjC.h.
References protocol_begin(), and protocol_end().
Referenced by clang::Sema::ActOnProperty(), AddObjCMethods(), ClassImplementsProtocol(), lookupMethod(), and clang::ASTDeclWriter::VisitObjCInterfaceDecl().
void clang::ObjCInterfaceDecl::setCategoryListRaw | ( | ObjCCategoryDecl * | category | ) | [inline] |
Set the raw pointer to the start of the category/extension list.
Definition at line 1244 of file DeclObjC.h.
Referenced by clang::ObjCCategoryDecl::Create().
void clang::ObjCInterfaceDecl::setEndOfDefinitionLoc | ( | SourceLocation | LE | ) | [inline] |
Definition at line 1329 of file DeclObjC.h.
Referenced by clang::Sema::ActOnStartClassImplementation(), clang::Sema::ActOnStartClassInterface(), and clang::Sema::CheckImplementationIvars().
Indicate that this Objective-C class is complete, but that the external AST source will be responsible for filling in its contents when a complete class is required.
Definition at line 1192 of file DeclObjC.cpp.
References clang::Decl::getASTContext(), and hasDefinition().
Indicate that this interface decl contains at least one initializer marked with the 'objc_designated_initializer' attribute.
Definition at line 1200 of file DeclObjC.cpp.
References isThisDeclarationADefinition().
Referenced by handleObjCDesignatedInitializer().
void ObjCInterfaceDecl::setImplementation | ( | ObjCImplementationDecl * | ImplD | ) |
Definition at line 1247 of file DeclObjC.cpp.
References clang::Decl::getASTContext(), getDefinition(), and clang::ASTContext::setObjCImplementation().
Referenced by clang::Sema::ActOnStartClassImplementation(), clang::ASTNodeImporter::ImportDefinition(), and clang::ASTNodeImporter::VisitObjCImplementationDecl().
void clang::ObjCInterfaceDecl::setIvarList | ( | ObjCIvarDecl * | ivar | ) | [inline] |
Definition at line 944 of file DeclObjC.h.
Referenced by clang::ObjCIvarDecl::Create(), and clang::ASTDeclReader::VisitObjCInterfaceDecl().
void clang::ObjCInterfaceDecl::setProtocolList | ( | ObjCProtocolDecl *const * | List, |
unsigned | Num, | ||
const SourceLocation * | Locs, | ||
ASTContext & | C | ||
) | [inline] |
setProtocolList - Set the list of protocols that this interface implements.
Definition at line 948 of file DeclObjC.h.
Referenced by clang::Sema::ActOnStartClassInterface(), clang::ASTNodeImporter::ImportDefinition(), and clang::ASTDeclReader::VisitObjCInterfaceDecl().
void clang::ObjCInterfaceDecl::setSuperClass | ( | ObjCInterfaceDecl * | superCls | ) | [inline] |
Definition at line 1036 of file DeclObjC.h.
References getDefinition(), and hasDefinition().
Referenced by clang::Sema::ActOnStartClassImplementation(), clang::Sema::ActOnStartClassInterface(), and clang::ASTNodeImporter::ImportDefinition().
void clang::ObjCInterfaceDecl::setSuperClassLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 1331 of file DeclObjC.h.
Referenced by clang::Sema::ActOnStartClassImplementation(), clang::Sema::ActOnStartClassInterface(), and clang::ASTNodeImporter::ImportDefinition().
void clang::ObjCInterfaceDecl::setTypeForDecl | ( | const Type * | TD | ) | const [inline] |
Definition at line 1363 of file DeclObjC.h.
void ObjCInterfaceDecl::startDefinition | ( | ) |
Starts the definition of this Objective-C class, taking it from a forward declaration (@class) to a definition (@interface).
Definition at line 472 of file DeclObjC.cpp.
References clang::Redeclarable< ObjCInterfaceDecl >::redecls().
Referenced by clang::Sema::ActOnStartClassImplementation(), clang::Sema::ActOnStartClassInterface(), and clang::ASTNodeImporter::ImportDefinition().
visible_categories_range clang::ObjCInterfaceDecl::visible_categories | ( | ) | const [inline] |
Definition at line 1104 of file DeclObjC.h.
References visible_categories_begin(), and visible_categories_end().
Referenced by ClassImplementsProtocol(), clang::Sema::CodeCompleteObjCImplementationCategory(), clang::Sema::CodeCompleteObjCMethodDecl(), FindCategoryDeclaration(), clang::ObjCContainerDecl::FindPropertyDeclaration(), getCategoryClassMethod(), getCategoryInstanceMethod(), and lookupMethod().
visible_categories_iterator clang::ObjCInterfaceDecl::visible_categories_begin | ( | ) | const [inline] |
Retrieve an iterator to the beginning of the visible-categories list.
Definition at line 1111 of file DeclObjC.h.
References getCategoryListRaw().
Referenced by visible_categories(), and visible_categories_empty().
bool clang::ObjCInterfaceDecl::visible_categories_empty | ( | ) | const [inline] |
Determine whether the visible-categories list is empty.
Definition at line 1121 of file DeclObjC.h.
References visible_categories_begin(), and visible_categories_end().
visible_categories_iterator clang::ObjCInterfaceDecl::visible_categories_end | ( | ) | const [inline] |
Retrieve an iterator to the end of the visible-categories list.
Definition at line 1116 of file DeclObjC.h.
Referenced by visible_categories(), and visible_categories_empty().
visible_extensions_range clang::ObjCInterfaceDecl::visible_extensions | ( | ) | const [inline] |
Definition at line 1174 of file DeclObjC.h.
References visible_extensions_begin(), and visible_extensions_end().
Referenced by clang::Sema::CheckImplementationIvars(), getDesignatedInitializers(), isDesignatedInitializer(), isIntroducingInitializers(), and lookupInstanceVariable().
visible_extensions_iterator clang::ObjCInterfaceDecl::visible_extensions_begin | ( | ) | const [inline] |
Retrieve an iterator to the beginning of the visible-extensions list.
Definition at line 1181 of file DeclObjC.h.
References getCategoryListRaw().
Referenced by visible_extensions(), and visible_extensions_empty().
bool clang::ObjCInterfaceDecl::visible_extensions_empty | ( | ) | const [inline] |
Determine whether the visible-extensions list is empty.
Definition at line 1191 of file DeclObjC.h.
References visible_extensions_begin(), and visible_extensions_end().
visible_extensions_iterator clang::ObjCInterfaceDecl::visible_extensions_end | ( | ) | const [inline] |
Retrieve an iterator to the end of the visible-extensions list.
Definition at line 1186 of file DeclObjC.h.
Referenced by visible_extensions(), and visible_extensions_empty().
friend class ASTContext [friend] |
Definition at line 671 of file DeclObjC.h.
friend class ASTDeclReader [friend] |
Reimplemented from clang::Redeclarable< ObjCInterfaceDecl >.
Definition at line 1369 of file DeclObjC.h.
friend class ASTDeclWriter [friend] |
Reimplemented from clang::Redeclarable< ObjCInterfaceDecl >.
Definition at line 1370 of file DeclObjC.h.
friend class ASTReader [friend] |
Reimplemented from clang::Decl.
Definition at line 1368 of file DeclObjC.h.