class ObjCIvarDecl
Declaration
class ObjCIvarDecl : public FieldDecl { /* full declaration omitted */ };
Description
ObjCIvarDecl - Represents an ObjC instance variable. In general, ObjC instance variables are identical to C. The only exception is Objective-C supports C++ style access control. For example: @ interface IvarExample : NSObject { id defaultToProtected; @ public: id canBePublic; // same as C++. @ protected: id canBeProtected; // same as C++. @ package: id canBePackage; // framework visibility (not available in C++). }
Declared at: clang/include/clang/AST/DeclObjC.h:1923
Inherits from: FieldDecl
Member Variables
- private clang::ObjCIvarDecl* NextIvar = nullptr
- NextIvar - Next Ivar in the list of ivars declared in class; class's extensions and class's implementation
- private unsigned int DeclAccess
- private unsigned int Synthesized
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- public static clang::ObjCIvarDecl * Create(clang::ASTContext & C, clang::ObjCContainerDecl * DC, clang::SourceLocation StartLoc, clang::SourceLocation IdLoc, clang::IdentifierInfo * Id, clang::QualType T, clang::TypeSourceInfo * TInfo, clang::ObjCIvarDecl::AccessControl ac, clang::Expr * BW = nullptr, bool synthesized = false)
- public static clang::ObjCIvarDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
- private ObjCIvarDecl(clang::ObjCContainerDecl * DC, clang::SourceLocation StartLoc, clang::SourceLocation IdLoc, clang::IdentifierInfo * Id, clang::QualType T, clang::TypeSourceInfo * TInfo, clang::ObjCIvarDecl::AccessControl ac, clang::Expr * BW, bool synthesized)
- private void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::ObjCIvarDecl::AccessControl getAccessControl() const
- public clang::ObjCIvarDecl::AccessControl getCanonicalAccessControl() const
- public clang::ObjCIvarDecl * getCanonicalDecl()
- public const clang::ObjCIvarDecl * getCanonicalDecl() const
- public const clang::ObjCInterfaceDecl * getContainingInterface() const
- public clang::ObjCInterfaceDecl * getContainingInterface()
- public clang::ObjCIvarDecl * getNextIvar()
- public const clang::ObjCIvarDecl * getNextIvar() const
- public bool getSynthesize() const
- public clang::QualType getUsageType(clang::QualType objectType) const
- public void setAccessControl(clang::ObjCIvarDecl::AccessControl ac)
- public void setNextIvar(clang::ObjCIvarDecl * ivar)
- public void setSynthesize(bool synth)
Inherited from FieldDecl:
- public Create
- public CreateDeserialized
- public classof
- public classofKind
- public getBitWidth
- public getBitWidthValue
- public getCanonicalDecl
- public getCanonicalDecl
- public getCapturedVLAType
- public getFieldIndex
- public getInClassInitStyle
- public getInClassInitializer
- public getParent
- public getParent
- public getSourceRange
- public hasCapturedVLAType
- public hasInClassInitializer
- public isAnonymousStructOrUnion
- public isBitField
- public isMutable
- public isUnnamedBitfield
- public isZeroLengthBitField
- public isZeroSize
- public removeBitWidth
- public removeInClassInitializer
- public setBitWidth
- public setCapturedVLAType
- public setInClassInitializer
Inherited from DeclaratorDecl:
- public classof
- public classofKind
- public getBeginLoc
- public getInnerLocStart
- public getNumTemplateParameterLists
- public getOuterLocStart
- public getQualifier
- public getQualifierLoc
- public getSourceRange
- public getTemplateParameterList
- public getTrailingRequiresClause
- public getTrailingRequiresClause
- public getTypeSourceInfo
- public getTypeSpecEndLoc
- public getTypeSpecStartLoc
- public setInnerLocStart
- public setQualifierInfo
- public setTemplateParameterListsInfo
- public setTrailingRequiresClause
- public setTypeSourceInfo
Inherited from ValueDecl:
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
¶static clang::ObjCIvarDecl* Create(
clang::ASTContext& C,
clang::ObjCContainerDecl* DC,
clang::SourceLocation StartLoc,
clang::SourceLocation IdLoc,
clang::IdentifierInfo* Id,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ObjCIvarDecl::AccessControl ac,
clang::Expr* BW = nullptr,
bool synthesized = false)
static clang::ObjCIvarDecl* Create(
clang::ASTContext& C,
clang::ObjCContainerDecl* DC,
clang::SourceLocation StartLoc,
clang::SourceLocation IdLoc,
clang::IdentifierInfo* Id,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ObjCIvarDecl::AccessControl ac,
clang::Expr* BW = nullptr,
bool synthesized = false)
Declared at: clang/include/clang/AST/DeclObjC.h:1941
Parameters
- clang::ASTContext& C
- clang::ObjCContainerDecl* DC
- clang::SourceLocation StartLoc
- clang::SourceLocation IdLoc
- clang::IdentifierInfo* Id
- clang::QualType T
- clang::TypeSourceInfo* TInfo
- clang::ObjCIvarDecl::AccessControl ac
- clang::Expr* BW = nullptr
- bool synthesized = false
¶static clang::ObjCIvarDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID)
static clang::ObjCIvarDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID)
Declared at: clang/include/clang/AST/DeclObjC.h:1948
Parameters
- clang::ASTContext& C
- unsigned int ID
¶ObjCIvarDecl(
clang::ObjCContainerDecl* DC,
clang::SourceLocation StartLoc,
clang::SourceLocation IdLoc,
clang::IdentifierInfo* Id,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ObjCIvarDecl::AccessControl ac,
clang::Expr* BW,
bool synthesized)
ObjCIvarDecl(
clang::ObjCContainerDecl* DC,
clang::SourceLocation StartLoc,
clang::SourceLocation IdLoc,
clang::IdentifierInfo* Id,
clang::QualType T,
clang::TypeSourceInfo* TInfo,
clang::ObjCIvarDecl::AccessControl ac,
clang::Expr* BW,
bool synthesized)
Declared at: clang/include/clang/AST/DeclObjC.h:1932
Parameters
- clang::ObjCContainerDecl* DC
- clang::SourceLocation StartLoc
- clang::SourceLocation IdLoc
- clang::IdentifierInfo* Id
- clang::QualType T
- clang::TypeSourceInfo* TInfo
- clang::ObjCIvarDecl::AccessControl ac
- clang::Expr* BW
- bool synthesized
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclObjC.h:1924
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclObjC.h:1986
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:1987
Parameters
- clang::Decl::Kind K
¶clang::ObjCIvarDecl::AccessControl
getAccessControl() const
clang::ObjCIvarDecl::AccessControl
getAccessControl() const
Declared at: clang/include/clang/AST/DeclObjC.h:1972
¶clang::ObjCIvarDecl::AccessControl
getCanonicalAccessControl() const
clang::ObjCIvarDecl::AccessControl
getCanonicalAccessControl() const
Declared at: clang/include/clang/AST/DeclObjC.h:1974
¶clang::ObjCIvarDecl* getCanonicalDecl()
clang::ObjCIvarDecl* getCanonicalDecl()
Description
Retrieves the canonical declaration of this field.
Declared at: clang/include/clang/AST/DeclObjC.h:1963
¶const clang::ObjCIvarDecl* getCanonicalDecl()
const
const clang::ObjCIvarDecl* getCanonicalDecl()
const
Declared at: clang/include/clang/AST/DeclObjC.h:1966
¶const clang::ObjCInterfaceDecl*
getContainingInterface() const
const clang::ObjCInterfaceDecl*
getContainingInterface() const
Declared at: clang/include/clang/AST/DeclObjC.h:1955
¶clang::ObjCInterfaceDecl* getContainingInterface()
clang::ObjCInterfaceDecl* getContainingInterface()
Description
Return the class interface that this ivar is logically contained in; this is either the interface where the ivar was declared, or the interface the ivar is conceptually a part of in the case of synthesized ivars.
Declared at: clang/include/clang/AST/DeclObjC.h:1954
¶clang::ObjCIvarDecl* getNextIvar()
clang::ObjCIvarDecl* getNextIvar()
Declared at: clang/include/clang/AST/DeclObjC.h:1959
¶const clang::ObjCIvarDecl* getNextIvar() const
const clang::ObjCIvarDecl* getNextIvar() const
Declared at: clang/include/clang/AST/DeclObjC.h:1960
¶bool getSynthesize() const
bool getSynthesize() const
Declared at: clang/include/clang/AST/DeclObjC.h:1979
¶clang::QualType getUsageType(
clang::QualType objectType) const
clang::QualType getUsageType(
clang::QualType objectType) const
Description
Retrieve the type of this instance variable when viewed as a member of a specific object type.
Declared at: clang/include/clang/AST/DeclObjC.h:1983
Parameters
- clang::QualType objectType
¶void setAccessControl(
clang::ObjCIvarDecl::AccessControl ac)
void setAccessControl(
clang::ObjCIvarDecl::AccessControl ac)
Declared at: clang/include/clang/AST/DeclObjC.h:1970
Parameters
- clang::ObjCIvarDecl::AccessControl ac
¶void setNextIvar(clang::ObjCIvarDecl* ivar)
void setNextIvar(clang::ObjCIvarDecl* ivar)
Declared at: clang/include/clang/AST/DeclObjC.h:1961
Parameters
- clang::ObjCIvarDecl* ivar
¶void setSynthesize(bool synth)
void setSynthesize(bool synth)
Declared at: clang/include/clang/AST/DeclObjC.h:1978
Parameters
- bool synth