class ObjCContainerDecl
Declaration
class ObjCContainerDecl : public NamedDecl, public DeclContext { /* full declaration omitted */ };
Description
ObjCContainerDecl - Represents a container for method declarations. Current sub-classes are ObjCInterfaceDecl, ObjCCategoryDecl, ObjCProtocolDecl, and ObjCImplDecl.
Declared at: clang/include/clang/AST/DeclObjC.h:944
Inherits from: NamedDecl, DeclContext
Member Variables
- private clang::SourceRange AtEnd
Inherited from DeclContext:
- protected
- protected FirstDecl = nullptr
- protected LastDecl = nullptr
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- public clang::ObjCPropertyDecl * FindPropertyDeclaration(const clang::IdentifierInfo * PropertyId, clang::ObjCPropertyQueryKind QueryKind) const
- public bool HasUserDeclaredSetterMethod(const clang::ObjCPropertyDecl * P) const
- public ObjCContainerDecl(clang::Decl::Kind DK, clang::DeclContext * DC, clang::IdentifierInfo * Id, clang::SourceLocation nameLoc, clang::SourceLocation atStartLoc)
- private void anchor()
- public static clang::ObjCContainerDecl * castFromDeclContext(const clang::DeclContext * DC)
- public static clang::DeclContext * castToDeclContext(const clang::ObjCContainerDecl * D)
- public clang::ObjCContainerDecl::classmeth_range class_methods() const
- public clang::ObjCContainerDecl::classprop_range class_properties() const
- public clang::ObjCContainerDecl::classmeth_iterator classmeth_begin() const
- public clang::ObjCContainerDecl::classmeth_iterator classmeth_end() const
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::ObjCContainerDecl::classprop_iterator classprop_begin() const
- public clang::ObjCContainerDecl::classprop_iterator classprop_end() const
- public virtual void collectPropertiesToImplement(clang::ObjCContainerDecl::PropertyMap & PM, clang::ObjCContainerDecl::PropertyDeclOrder & PO) const
- public clang::SourceRange getAtEndRange() const
- public clang::SourceLocation getAtStartLoc() const
- public clang::ObjCMethodDecl * getClassMethod(clang::Selector Sel, bool AllowHidden = false) const
- public clang::ObjCMethodDecl * getInstanceMethod(clang::Selector Sel, bool AllowHidden = false) const
- public clang::ObjCIvarDecl * getIvarDecl(clang::IdentifierInfo * Id) const
- public clang::ObjCMethodDecl * getMethod(clang::Selector Sel, bool isInstance, bool AllowHidden = false) const
- public clang::ObjCPropertyDecl * getProperty(const clang::IdentifierInfo * Id, bool IsInstance) const
- public clang::SourceRange getSourceRange() const
- public clang::ObjCContainerDecl::instmeth_range instance_methods() const
- public clang::ObjCContainerDecl::instprop_range instance_properties() const
- public clang::ObjCContainerDecl::instmeth_iterator instmeth_begin() const
- public clang::ObjCContainerDecl::instmeth_iterator instmeth_end() const
- public clang::ObjCContainerDecl::instprop_iterator instprop_begin() const
- public clang::ObjCContainerDecl::instprop_iterator instprop_end() const
- public clang::ObjCContainerDecl::method_iterator meth_begin() const
- public clang::ObjCContainerDecl::method_iterator meth_end() const
- public clang::ObjCContainerDecl::method_range methods() const
- public clang::ObjCContainerDecl::prop_iterator prop_begin() const
- public clang::ObjCContainerDecl::prop_iterator prop_end() const
- public clang::ObjCContainerDecl::prop_range properties() const
- public void setAtEndRange(clang::SourceRange atEnd)
- public void setAtStartLoc(clang::SourceLocation Loc)
Inherited from DeclContext:
- protected BuildDeclChain
- public Encloses
- public Equals
- public InEnclosingNamespaceSetOf
- public addDecl
- public addDeclInternal
- public addHiddenDecl
- public buildLookup
- public classof
- public classof
- public collectAllContexts
- public containsDecl
- public containsDeclAndLoad
- public ddiags
- public decls
- public decls_begin
- public decls_empty
- public decls_end
- public dumpDeclContext
- public dumpLookups
- public dumpLookups
- public getDeclKind
- public getDeclKindName
- public getEnclosingNamespaceContext
- public getEnclosingNamespaceContext
- public getExternCContext
- public getInnermostBlockDecl
- public getLexicalParent
- public getLexicalParent
- public getLookupParent
- public getLookupParent
- public getLookupPtr
- public getNonClosureAncestor
- public getNonClosureAncestor
- public getNonTransparentContext
- public getNonTransparentContext
- public getOuterLexicalRecordContext
- public getOuterLexicalRecordContext
- public getParent
- public getParent
- public getParentASTContext
- public getPrimaryContext
- public getPrimaryContext
- public getRedeclContext
- public getRedeclContext
- public hasExternalLexicalStorage
- public hasExternalVisibleStorage
- public isClosure
- public isDeclInLexicalTraversal
- public isDependentContext
- public isExternCContext
- public isExternCXXContext
- public isFileContext
- public isFunctionOrMethod
- public isInlineNamespace
- public isLookupContext
- public isNamespace
- public isObjCContainer
- public isRecord
- public isStdNamespace
- public isTranslationUnit
- public isTransparentContext
- public localUncachedLookup
- public lookup
- public lookups
- public lookups_begin
- public lookups_end
- public makeDeclVisibleInContext
- public noload_decls
- public noload_decls_begin
- public noload_decls_end
- public noload_lookup
- public noload_lookups
- public noload_lookups_begin
- public noload_lookups_end
- public removeDecl
- public setHasExternalLexicalStorage
- public setHasExternalVisibleStorage
- public setMustBuildLookupTable
- public setUseQualifiedLookup
- public shouldUseQualifiedLookup
- public using_directives
Inherited from NamedDecl:
- public classof
- public classofKind
- public declarationReplaces
- public getDeclName
- public getExplicitVisibility
- public getFormalLinkage
- public getIdentifier
- public getLinkageAndVisibility
- public getLinkageInternal
- public getMostRecentDecl
- public getMostRecentDecl
- public getName
- public getNameAsString
- public getNameForDiagnostic
- public getObjCFStringFormattingFamily
- public getQualifiedNameAsString
- public getUnderlyingDecl
- public getUnderlyingDecl
- public getVisibility
- public hasExternalFormalLinkage
- public hasLinkage
- public hasLinkageBeenComputed
- public isCXXClassMember
- public isCXXInstanceMember
- public isExternallyDeclarable
- public isExternallyVisible
- public isLinkageValid
- public isReserved
- public printName
- public printNestedNameSpecifier
- public printNestedNameSpecifier
- public printQualifiedName
- public printQualifiedName
- public setDeclName
Inherited from Decl:
- public EnableStatistics
- public PrintStats
- public add
- public addAttr
- public attr_begin
- public attr_end
- public attrs
- public canBeWeakImported
- public castFromDeclContext
- public castToDeclContext
- public classofKind
- public dropAttr
- public dropAttrs
- public dump
- public dump
- public dumpColor
- public getASTContext
- protected getASTMutationListener
- public getAccess
- public getAccessUnsafe
- public getAsFunction
- public getAsFunction
- public getAttr
- public getAttrs
- public getAttrs
- public getAvailability
- public getBeginLoc
- public getBody
- public getBodyRBrace
- protected getCachedLinkage
- public getCanonicalDecl
- public getCanonicalDecl
- public getDeclContext
- public getDeclContext
- public getDeclKindName
- public getDefiningAttr
- public getDescribedTemplate
- public getDescribedTemplateParams
- public getEndLoc
- public getExternalSourceSymbolAttr
- public getFriendObjectKind
- public getFunctionType
- public getGlobalID
- public getID
- public getIdentifierNamespace
- public getIdentifierNamespaceForKind
- public getImportedOwningModule
- public getKind
- public getLangOpts
- public getLexicalDeclContext
- public getLexicalDeclContext
- public getLocalOwningModule
- public getLocation
- public getMaxAlignment
- public getModuleOwnershipKind
- public getMostRecentDecl
- public getMostRecentDecl
- protected getMostRecentDeclImpl
- public getNextDeclInContext
- public getNextDeclInContext
- protected getNextRedeclarationImpl
- public getNonClosureContext
- public getNonClosureContext
- public getOwningModule
- public getOwningModuleForLinkage
- public getOwningModuleID
- public getParentFunctionOrMethod
- public getParentFunctionOrMethod
- public getPreviousDecl
- public getPreviousDecl
- protected getPreviousDeclImpl
- public getSourceRange
- public getTemplateDepth
- public getTranslationUnitDecl
- public getTranslationUnitDecl
- public getVersionIntroduced
- public hasAttr
- public hasAttrs
- public hasBody
- protected hasCachedLinkage
- public hasDefiningAttr
- protected hasLocalOwningModuleStorage
- public hasOwningModule
- public hasTagIdentifierNamespace
- public isCanonicalDecl
- public isDefinedOutsideFunctionOrMethod
- public isDeprecated
- public isDiscardedInGlobalModuleFragment
- public isFirstDecl
- public isFromASTFile
- public isFunctionOrFunctionTemplate
- public isImplicit
- public isInAnonymousNamespace
- public isInExportDeclContext
- public isInIdentifierNamespace
- public isInLocalScopeForInstantiation
- public isInStdNamespace
- public isInvalidDecl
- public isInvisibleOutsideTheOwningModule
- public isLocalExternDecl
- public isModulePrivate
- public isOutOfLine
- public isParameterPack
- public isReachable
- public isReferenced
- public isTagIdentifierNamespace
- public isTemplateDecl
- public isTemplateParameter
- public isTemplateParameterPack
- public isTemplated
- public isThisDeclarationReferenced
- public isTopLevelDeclInObjCContainer
- public isUnavailable
- public isUnconditionallyVisible
- public isUsed
- public isWeakImported
- public markUsed
- public print
- public print
- public printGroup
- public redecls
- public redecls_begin
- public redecls_end
- public setAccess
- public setAttrs
- protected setCachedLinkage
- public setDeclContext
- public setFromASTFile
- public setImplicit
- public setInvalidDecl
- public setIsUsed
- public setLexicalDeclContext
- public setLocalExternDecl
- public setLocalOwningModule
- public setLocation
- public setModuleOwnershipKind
- protected setModulePrivate
- public setNonMemberOperator
- public setObjectOfFriendDecl
- public setOwningModuleID
- public setReferenced
- public setTopLevelDeclInObjCContainer
- public setVisibleDespiteOwningModule
- public specific_attr_begin
- public specific_attr_end
- public specific_attrs
- protected updateOutOfDate
Methods
¶clang::ObjCPropertyDecl* FindPropertyDeclaration(
const clang::IdentifierInfo* PropertyId,
clang::ObjCPropertyQueryKind QueryKind) const
clang::ObjCPropertyDecl* FindPropertyDeclaration(
const clang::IdentifierInfo* PropertyId,
clang::ObjCPropertyQueryKind QueryKind) const
Declared at: clang/include/clang/AST/DeclObjC.h:1078
Parameters
- const clang::IdentifierInfo* PropertyId
- clang::ObjCPropertyQueryKind QueryKind
¶bool HasUserDeclaredSetterMethod(
const clang::ObjCPropertyDecl* P) const
bool HasUserDeclaredSetterMethod(
const clang::ObjCPropertyDecl* P) const
Declared at: clang/include/clang/AST/DeclObjC.h:1071
Parameters
- const clang::ObjCPropertyDecl* P
¶ObjCContainerDecl(
clang::Decl::Kind DK,
clang::DeclContext* DC,
clang::IdentifierInfo* Id,
clang::SourceLocation nameLoc,
clang::SourceLocation atStartLoc)
ObjCContainerDecl(
clang::Decl::Kind DK,
clang::DeclContext* DC,
clang::IdentifierInfo* Id,
clang::SourceLocation nameLoc,
clang::SourceLocation atStartLoc)
Declared at: clang/include/clang/AST/DeclObjC.h:955
Parameters
- clang::Decl::Kind DK
- clang::DeclContext* DC
- clang::IdentifierInfo* Id
- clang::SourceLocation nameLoc
- clang::SourceLocation atStartLoc
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclObjC.h:952
¶static clang::ObjCContainerDecl*
castFromDeclContext(const clang::DeclContext* DC)
static clang::ObjCContainerDecl*
castFromDeclContext(const clang::DeclContext* DC)
Declared at: clang/include/clang/AST/DeclObjC.h:1120
Parameters
- const clang::DeclContext* DC
¶static clang::DeclContext* castToDeclContext(
const clang::ObjCContainerDecl* D)
static clang::DeclContext* castToDeclContext(
const clang::ObjCContainerDecl* D)
Declared at: clang/include/clang/AST/DeclObjC.h:1116
Parameters
- const clang::ObjCContainerDecl* D
¶clang::ObjCContainerDecl::classmeth_range
class_methods() const
clang::ObjCContainerDecl::classmeth_range
class_methods() const
Declared at: clang/include/clang/AST/DeclObjC.h:1046
¶clang::ObjCContainerDecl::classprop_range
class_properties() const
clang::ObjCContainerDecl::classprop_range
class_properties() const
Declared at: clang/include/clang/AST/DeclObjC.h:995
¶clang::ObjCContainerDecl::classmeth_iterator
classmeth_begin() const
clang::ObjCContainerDecl::classmeth_iterator
classmeth_begin() const
Declared at: clang/include/clang/AST/DeclObjC.h:1050
¶clang::ObjCContainerDecl::classmeth_iterator
classmeth_end() const
clang::ObjCContainerDecl::classmeth_iterator
classmeth_end() const
Declared at: clang/include/clang/AST/DeclObjC.h:1054
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclObjC.h:1109
Parameters
- const clang::Decl* D
¶static bool classofKind(clang::Decl::Kind K)
static bool classofKind(clang::Decl::Kind K)
Declared at: clang/include/clang/AST/DeclObjC.h:1111
Parameters
- clang::Decl::Kind K
¶clang::ObjCContainerDecl::classprop_iterator
classprop_begin() const
clang::ObjCContainerDecl::classprop_iterator
classprop_begin() const
Declared at: clang/include/clang/AST/DeclObjC.h:999
¶clang::ObjCContainerDecl::classprop_iterator
classprop_end() const
clang::ObjCContainerDecl::classprop_iterator
classprop_end() const
Declared at: clang/include/clang/AST/DeclObjC.h:1003
¶virtual void collectPropertiesToImplement(
clang::ObjCContainerDecl::PropertyMap& PM,
clang::ObjCContainerDecl::PropertyDeclOrder&
PO) const
virtual void collectPropertiesToImplement(
clang::ObjCContainerDecl::PropertyMap& PM,
clang::ObjCContainerDecl::PropertyDeclOrder&
PO) const
Description
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.
Declared at: clang/include/clang/AST/DeclObjC.h:1090
Parameters
¶clang::SourceRange getAtEndRange() const
clang::SourceRange getAtEndRange() const
Declared at: clang/include/clang/AST/DeclObjC.h:1100
¶clang::SourceLocation getAtStartLoc() const
clang::SourceLocation getAtStartLoc() const
Declared at: clang/include/clang/AST/DeclObjC.h:1093
¶clang::ObjCMethodDecl* getClassMethod(
clang::Selector Sel,
bool AllowHidden = false) const
clang::ObjCMethodDecl* getClassMethod(
clang::Selector Sel,
bool AllowHidden = false) const
Declared at: clang/include/clang/AST/DeclObjC.h:1067
Parameters
- clang::Selector Sel
- bool AllowHidden = false
¶clang::ObjCMethodDecl* getInstanceMethod(
clang::Selector Sel,
bool AllowHidden = false) const
clang::ObjCMethodDecl* getInstanceMethod(
clang::Selector Sel,
bool AllowHidden = false) const
Declared at: clang/include/clang/AST/DeclObjC.h:1062
Parameters
- clang::Selector Sel
- bool AllowHidden = false
¶clang::ObjCIvarDecl* getIvarDecl(
clang::IdentifierInfo* Id) const
clang::ObjCIvarDecl* getIvarDecl(
clang::IdentifierInfo* Id) const
Declared at: clang/include/clang/AST/DeclObjC.h:1072
Parameters
¶clang::ObjCMethodDecl* getMethod(
clang::Selector Sel,
bool isInstance,
bool AllowHidden = false) const
clang::ObjCMethodDecl* getMethod(
clang::Selector Sel,
bool isInstance,
bool AllowHidden = false) const
Declared at: clang/include/clang/AST/DeclObjC.h:1059
Parameters
- clang::Selector Sel
- bool isInstance
- bool AllowHidden = false
¶clang::ObjCPropertyDecl* getProperty(
const clang::IdentifierInfo* Id,
bool IsInstance) const
clang::ObjCPropertyDecl* getProperty(
const clang::IdentifierInfo* Id,
bool IsInstance) const
Declared at: clang/include/clang/AST/DeclObjC.h:1074
Parameters
- const clang::IdentifierInfo* Id
- bool IsInstance
¶clang::SourceRange getSourceRange() const
clang::SourceRange getSourceRange() const
Description
Source range that this declaration covers.
Declared at: clang/include/clang/AST/DeclObjC.h:1104
¶clang::ObjCContainerDecl::instmeth_range
instance_methods() const
clang::ObjCContainerDecl::instmeth_range
instance_methods() const
Declared at: clang/include/clang/AST/DeclObjC.h:1029
¶clang::ObjCContainerDecl::instprop_range
instance_properties() const
clang::ObjCContainerDecl::instprop_range
instance_properties() const
Declared at: clang/include/clang/AST/DeclObjC.h:978
¶clang::ObjCContainerDecl::instmeth_iterator
instmeth_begin() const
clang::ObjCContainerDecl::instmeth_iterator
instmeth_begin() const
Declared at: clang/include/clang/AST/DeclObjC.h:1033
¶clang::ObjCContainerDecl::instmeth_iterator
instmeth_end() const
clang::ObjCContainerDecl::instmeth_iterator
instmeth_end() const
Declared at: clang/include/clang/AST/DeclObjC.h:1037
¶clang::ObjCContainerDecl::instprop_iterator
instprop_begin() const
clang::ObjCContainerDecl::instprop_iterator
instprop_begin() const
Declared at: clang/include/clang/AST/DeclObjC.h:982
¶clang::ObjCContainerDecl::instprop_iterator
instprop_end() const
clang::ObjCContainerDecl::instprop_iterator
instprop_end() const
Declared at: clang/include/clang/AST/DeclObjC.h:986
¶clang::ObjCContainerDecl::method_iterator
meth_begin() const
clang::ObjCContainerDecl::method_iterator
meth_begin() const
Declared at: clang/include/clang/AST/DeclObjC.h:1016
¶clang::ObjCContainerDecl::method_iterator
meth_end() const
clang::ObjCContainerDecl::method_iterator
meth_end() const
Declared at: clang/include/clang/AST/DeclObjC.h:1020
¶clang::ObjCContainerDecl::method_range methods()
const
clang::ObjCContainerDecl::method_range methods()
const
Declared at: clang/include/clang/AST/DeclObjC.h:1012
¶clang::ObjCContainerDecl::prop_iterator
prop_begin() const
clang::ObjCContainerDecl::prop_iterator
prop_begin() const
Declared at: clang/include/clang/AST/DeclObjC.h:965
¶clang::ObjCContainerDecl::prop_iterator prop_end()
const
clang::ObjCContainerDecl::prop_iterator prop_end()
const
Declared at: clang/include/clang/AST/DeclObjC.h:969
¶clang::ObjCContainerDecl::prop_range properties()
const
clang::ObjCContainerDecl::prop_range properties()
const
Declared at: clang/include/clang/AST/DeclObjC.h:963
¶void setAtEndRange(clang::SourceRange atEnd)
void setAtEndRange(clang::SourceRange atEnd)
Declared at: clang/include/clang/AST/DeclObjC.h:1102
Parameters
- clang::SourceRange atEnd
¶void setAtStartLoc(clang::SourceLocation Loc)
void setAtStartLoc(clang::SourceLocation Loc)
Declared at: clang/include/clang/AST/DeclObjC.h:1095