class ObjCPropertyDecl
Declaration
class ObjCPropertyDecl : public NamedDecl { /* full declaration omitted */ };
Description
Represents one property declaration in an Objective-C interface. For example:
Declared at: clang/include/clang/AST/DeclObjC.h:732
Inherits from: NamedDecl
Member Variables
- private clang::SourceLocation AtLoc
- private clang::SourceLocation LParenLoc
- private clang::QualType DeclType
- private clang::TypeSourceInfo* DeclTypeSourceInfo
- private unsigned int PropertyAttributes
- private unsigned int PropertyAttributesAsWritten
- private unsigned int PropertyImplementation
- private clang::Selector GetterName
- private clang::Selector SetterName
- private clang::SourceLocation GetterNameLoc
- private clang::SourceLocation SetterNameLoc
- private clang::ObjCMethodDecl* GetterMethodDecl = nullptr
- private clang::ObjCMethodDecl* SetterMethodDecl = nullptr
- private clang::ObjCIvarDecl* PropertyIvarDecl = nullptr
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- public static clang::ObjCPropertyDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation L, clang::IdentifierInfo * Id, clang::SourceLocation AtLocation, clang::SourceLocation LParenLocation, clang::QualType T, clang::TypeSourceInfo * TSI, clang::ObjCPropertyDecl::PropertyControl propControl = None)
- public static clang::ObjCPropertyDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
- private ObjCPropertyDecl(clang::DeclContext * DC, clang::SourceLocation L, clang::IdentifierInfo * Id, clang::SourceLocation AtLocation, clang::SourceLocation LParenLocation, clang::QualType T, clang::TypeSourceInfo * TSI, clang::ObjCPropertyDecl::PropertyControl propControl)
- private void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public static clang::ObjCPropertyDecl * findPropertyDecl(const clang::DeclContext * DC, const clang::IdentifierInfo * propertyID, clang::ObjCPropertyQueryKind queryKind)
- public clang::SourceLocation getAtLoc() const
- public clang::IdentifierInfo * getDefaultSynthIvarName(clang::ASTContext & Ctx) const
- public clang::ObjCMethodDecl * getGetterMethodDecl() const
- public clang::Selector getGetterName() const
- public clang::SourceLocation getGetterNameLoc() const
- public clang::SourceLocation getLParenLoc() const
- public ObjCPropertyAttribute::Kind getPropertyAttributes() const
- public ObjCPropertyAttribute::Kind getPropertyAttributesAsWritten() const
- public clang::ObjCPropertyDecl::PropertyControl getPropertyImplementation() const
- public clang::ObjCIvarDecl * getPropertyIvarDecl() const
- public static clang::ObjCPropertyQueryKind getQueryKind(bool isClassProperty)
- public clang::ObjCPropertyQueryKind getQueryKind() const
- public clang::ObjCPropertyDecl::SetterKind getSetterKind() const
- public clang::ObjCMethodDecl * getSetterMethodDecl() const
- public clang::Selector getSetterName() const
- public clang::SourceLocation getSetterNameLoc() const
- public clang::SourceRange getSourceRange() const
- public clang::QualType getType() const
- public clang::TypeSourceInfo * getTypeSourceInfo() const
- public clang::QualType getUsageType(clang::QualType objectType) const
- public bool isAtomic() const
- public bool isClassProperty() const
- public bool isDirectProperty() const
- public bool isInstanceProperty() const
- public bool isOptional() const
- public bool isReadOnly() const
- public bool isRetaining() const
- public void overwritePropertyAttributes(unsigned int PRVal)
- public void setAtLoc(clang::SourceLocation L)
- public void setGetterMethodDecl(clang::ObjCMethodDecl * gDecl)
- public void setGetterName(clang::Selector Sel, clang::SourceLocation Loc = clang::SourceLocation())
- public void setLParenLoc(clang::SourceLocation L)
- public void setPropertyAttributes(ObjCPropertyAttribute::Kind PRVal)
- public void setPropertyAttributesAsWritten(ObjCPropertyAttribute::Kind PRVal)
- public void setPropertyImplementation(clang::ObjCPropertyDecl::PropertyControl pc)
- public void setPropertyIvarDecl(clang::ObjCIvarDecl * Ivar)
- public void setSetterMethodDecl(clang::ObjCMethodDecl * gDecl)
- public void setSetterName(clang::Selector Sel, clang::SourceLocation Loc = clang::SourceLocation())
- public void setType(clang::QualType T, clang::TypeSourceInfo * TSI)
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::ObjCPropertyDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::IdentifierInfo* Id,
clang::SourceLocation AtLocation,
clang::SourceLocation LParenLocation,
clang::QualType T,
clang::TypeSourceInfo* TSI,
clang::ObjCPropertyDecl::PropertyControl
propControl = None)
static clang::ObjCPropertyDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::IdentifierInfo* Id,
clang::SourceLocation AtLocation,
clang::SourceLocation LParenLocation,
clang::QualType T,
clang::TypeSourceInfo* TSI,
clang::ObjCPropertyDecl::PropertyControl
propControl = None)
Declared at: clang/include/clang/AST/DeclObjC.h:786
Parameters
- clang::ASTContext& C
- clang::DeclContext* DC
- clang::SourceLocation L
- clang::IdentifierInfo* Id
- clang::SourceLocation AtLocation
- clang::SourceLocation LParenLocation
- clang::QualType T
- clang::TypeSourceInfo* TSI
- clang::ObjCPropertyDecl::PropertyControl propControl = None
¶static clang::ObjCPropertyDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID)
static clang::ObjCPropertyDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID)
Declared at: clang/include/clang/AST/DeclObjC.h:790
Parameters
- clang::ASTContext& C
- unsigned int ID
¶ObjCPropertyDecl(
clang::DeclContext* DC,
clang::SourceLocation L,
clang::IdentifierInfo* Id,
clang::SourceLocation AtLocation,
clang::SourceLocation LParenLocation,
clang::QualType T,
clang::TypeSourceInfo* TSI,
clang::ObjCPropertyDecl::PropertyControl
propControl)
ObjCPropertyDecl(
clang::DeclContext* DC,
clang::SourceLocation L,
clang::IdentifierInfo* Id,
clang::SourceLocation AtLocation,
clang::SourceLocation LParenLocation,
clang::QualType T,
clang::TypeSourceInfo* TSI,
clang::ObjCPropertyDecl::PropertyControl
propControl)
Declared at: clang/include/clang/AST/DeclObjC.h:775
Parameters
- clang::DeclContext* DC
- clang::SourceLocation L
- clang::IdentifierInfo* Id
- clang::SourceLocation AtLocation
- clang::SourceLocation LParenLocation
- clang::QualType T
- clang::TypeSourceInfo* TSI
- clang::ObjCPropertyDecl::PropertyControl propControl
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclObjC.h:733
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclObjC.h:936
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:937
Parameters
- clang::Decl::Kind K
¶static clang::ObjCPropertyDecl* findPropertyDecl(
const clang::DeclContext* DC,
const clang::IdentifierInfo* propertyID,
clang::ObjCPropertyQueryKind queryKind)
static clang::ObjCPropertyDecl* findPropertyDecl(
const clang::DeclContext* DC,
const clang::IdentifierInfo* propertyID,
clang::ObjCPropertyQueryKind queryKind)
Description
Lookup a property by name in the specified DeclContext.
Declared at: clang/include/clang/AST/DeclObjC.h:932
Parameters
- const clang::DeclContext* DC
- const clang::IdentifierInfo* propertyID
- clang::ObjCPropertyQueryKind queryKind
¶clang::SourceLocation getAtLoc() const
clang::SourceLocation getAtLoc() const
Declared at: clang/include/clang/AST/DeclObjC.h:792
¶clang::IdentifierInfo* getDefaultSynthIvarName(
clang::ASTContext& Ctx) const
clang::IdentifierInfo* getDefaultSynthIvarName(
clang::ASTContext& Ctx) const
Description
Get the default name of the synthesized ivar.
Declared at: clang/include/clang/AST/DeclObjC.h:929
Parameters
- clang::ASTContext& Ctx
¶clang::ObjCMethodDecl* getGetterMethodDecl() const
clang::ObjCMethodDecl* getGetterMethodDecl() const
Declared at: clang/include/clang/AST/DeclObjC.h:897
¶clang::Selector getGetterName() const
clang::Selector getGetterName() const
Declared at: clang/include/clang/AST/DeclObjC.h:881
¶clang::SourceLocation getGetterNameLoc() const
clang::SourceLocation getGetterNameLoc() const
Declared at: clang/include/clang/AST/DeclObjC.h:882
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Declared at: clang/include/clang/AST/DeclObjC.h:795
¶ObjCPropertyAttribute::Kind
getPropertyAttributes() const
ObjCPropertyAttribute::Kind
getPropertyAttributes() const
Declared at: clang/include/clang/AST/DeclObjC.h:811
¶ObjCPropertyAttribute::Kind
getPropertyAttributesAsWritten() const
ObjCPropertyAttribute::Kind
getPropertyAttributesAsWritten() const
Declared at: clang/include/clang/AST/DeclObjC.h:823
¶clang::ObjCPropertyDecl::PropertyControl
getPropertyImplementation() const
clang::ObjCPropertyDecl::PropertyControl
getPropertyImplementation() const
Declared at: clang/include/clang/AST/DeclObjC.h:908
¶clang::ObjCIvarDecl* getPropertyIvarDecl() const
clang::ObjCIvarDecl* getPropertyIvarDecl() const
Declared at: clang/include/clang/AST/DeclObjC.h:920
¶static clang::ObjCPropertyQueryKind getQueryKind(
bool isClassProperty)
static clang::ObjCPropertyQueryKind getQueryKind(
bool isClassProperty)
Declared at: clang/include/clang/AST/DeclObjC.h:861
Parameters
- bool isClassProperty
¶clang::ObjCPropertyQueryKind getQueryKind() const
clang::ObjCPropertyQueryKind getQueryKind() const
Declared at: clang/include/clang/AST/DeclObjC.h:856
¶clang::ObjCPropertyDecl::SetterKind
getSetterKind() const
clang::ObjCPropertyDecl::SetterKind
getSetterKind() const
Description
getSetterKind - Return the method used for doing assignment in the property setter. This is only valid if the property has been defined to have a setter.
Declared at: clang/include/clang/AST/DeclObjC.h:869
¶clang::ObjCMethodDecl* getSetterMethodDecl() const
clang::ObjCMethodDecl* getSetterMethodDecl() const
Declared at: clang/include/clang/AST/DeclObjC.h:900
¶clang::Selector getSetterName() const
clang::Selector getSetterName() const
Declared at: clang/include/clang/AST/DeclObjC.h:889
¶clang::SourceLocation getSetterNameLoc() const
clang::SourceLocation getSetterNameLoc() const
Declared at: clang/include/clang/AST/DeclObjC.h:890
¶clang::SourceRange getSourceRange() const
clang::SourceRange getSourceRange() const
Description
Source range that this declaration covers.
Declared at: clang/include/clang/AST/DeclObjC.h:924
¶clang::QualType getType() const
clang::QualType getType() const
Declared at: clang/include/clang/AST/DeclObjC.h:800
¶clang::TypeSourceInfo* getTypeSourceInfo() const
clang::TypeSourceInfo* getTypeSourceInfo() const
Declared at: clang/include/clang/AST/DeclObjC.h:798
¶clang::QualType getUsageType(
clang::QualType objectType) const
clang::QualType getUsageType(
clang::QualType objectType) const
Description
Retrieve the type when this property is used with a specific base object type.
Declared at: clang/include/clang/AST/DeclObjC.h:809
Parameters
- clang::QualType objectType
¶bool isAtomic() const
bool isAtomic() const
Description
isAtomic - Return true if the property is atomic.
Declared at: clang/include/clang/AST/DeclObjC.h:839
¶bool isClassProperty() const
bool isClassProperty() const
Declared at: clang/include/clang/AST/DeclObjC.h:851
¶bool isDirectProperty() const
bool isDirectProperty() const
Declared at: clang/include/clang/AST/DeclObjC.h:854
¶bool isInstanceProperty() const
bool isInstanceProperty() const
Declared at: clang/include/clang/AST/DeclObjC.h:850
¶bool isOptional() const
bool isOptional() const
Declared at: clang/include/clang/AST/DeclObjC.h:912
¶bool isReadOnly() const
bool isReadOnly() const
Description
isReadOnly - Return true iff the property has a setter.
Declared at: clang/include/clang/AST/DeclObjC.h:834
¶bool isRetaining() const
bool isRetaining() const
Description
isRetaining - Return true if the property retains its value.
Declared at: clang/include/clang/AST/DeclObjC.h:844
¶void overwritePropertyAttributes(
unsigned int PRVal)
void overwritePropertyAttributes(
unsigned int PRVal)
Declared at: clang/include/clang/AST/DeclObjC.h:819
Parameters
- unsigned int PRVal
¶void setAtLoc(clang::SourceLocation L)
void setAtLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/DeclObjC.h:793
Parameters
¶void setGetterMethodDecl(
clang::ObjCMethodDecl* gDecl)
void setGetterMethodDecl(
clang::ObjCMethodDecl* gDecl)
Declared at: clang/include/clang/AST/DeclObjC.h:898
Parameters
- clang::ObjCMethodDecl* gDecl
¶void setGetterName(clang::Selector Sel,
clang::SourceLocation Loc =
clang::SourceLocation())
void setGetterName(clang::Selector Sel,
clang::SourceLocation Loc =
clang::SourceLocation())
Declared at: clang/include/clang/AST/DeclObjC.h:884
Parameters
- clang::Selector Sel
- clang::SourceLocation Loc = clang::SourceLocation()
¶void setLParenLoc(clang::SourceLocation L)
void setLParenLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/DeclObjC.h:796
Parameters
¶void setPropertyAttributes(
ObjCPropertyAttribute::Kind PRVal)
void setPropertyAttributes(
ObjCPropertyAttribute::Kind PRVal)
Declared at: clang/include/clang/AST/DeclObjC.h:815
Parameters
- ObjCPropertyAttribute::Kind PRVal
¶void setPropertyAttributesAsWritten(
ObjCPropertyAttribute::Kind PRVal)
void setPropertyAttributesAsWritten(
ObjCPropertyAttribute::Kind PRVal)
Declared at: clang/include/clang/AST/DeclObjC.h:827
Parameters
- ObjCPropertyAttribute::Kind PRVal
¶void setPropertyImplementation(
clang::ObjCPropertyDecl::PropertyControl pc)
void setPropertyImplementation(
clang::ObjCPropertyDecl::PropertyControl pc)
Declared at: clang/include/clang/AST/DeclObjC.h:904
Parameters
- clang::ObjCPropertyDecl::PropertyControl pc
¶void setPropertyIvarDecl(
clang::ObjCIvarDecl* Ivar)
void setPropertyIvarDecl(
clang::ObjCIvarDecl* Ivar)
Declared at: clang/include/clang/AST/DeclObjC.h:916
Parameters
- clang::ObjCIvarDecl* Ivar
¶void setSetterMethodDecl(
clang::ObjCMethodDecl* gDecl)
void setSetterMethodDecl(
clang::ObjCMethodDecl* gDecl)
Declared at: clang/include/clang/AST/DeclObjC.h:901
Parameters
- clang::ObjCMethodDecl* gDecl
¶void setSetterName(clang::Selector Sel,
clang::SourceLocation Loc =
clang::SourceLocation())
void setSetterName(clang::Selector Sel,
clang::SourceLocation Loc =
clang::SourceLocation())
Declared at: clang/include/clang/AST/DeclObjC.h:892
Parameters
- clang::Selector Sel
- clang::SourceLocation Loc = clang::SourceLocation()
¶void setType(clang::QualType T,
clang::TypeSourceInfo* TSI)
void setType(clang::QualType T,
clang::TypeSourceInfo* TSI)
Declared at: clang/include/clang/AST/DeclObjC.h:802