class AvailabilityAttr
Declaration
class AvailabilityAttr : public InheritableAttr { /* full declaration omitted */ };
Description
Attr - This represents one attribute.
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1671
Inherits from: InheritableAttr
Member Variables
- private clang::IdentifierInfo* platform
- private llvm::VersionTuple introduced
- private llvm::VersionTuple deprecated
- private llvm::VersionTuple obsoleted
- private unsigned int messageLength
- private char* message
- private bool strict
- private unsigned int replacementLength
- private char* replacement
- private int priority
Inherited from Attr:
- protected Inherited
- protected IsPackExpansion
- protected Implicit
- protected IsLateParsed
- protected InheritEvenIfAlreadyPresent
Inherited from AttributeCommonInfo:
Method Overview
- public AvailabilityAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::IdentifierInfo * Platform, llvm::VersionTuple Introduced, llvm::VersionTuple Deprecated, llvm::VersionTuple Obsoleted, bool Unavailable, llvm::StringRef Message, bool Strict, llvm::StringRef Replacement, int Priority)
- public static clang::AvailabilityAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Platform, llvm::VersionTuple Introduced, llvm::VersionTuple Deprecated, llvm::VersionTuple Obsoleted, bool Unavailable, llvm::StringRef Message, bool Strict, llvm::StringRef Replacement, int Priority, const clang::AttributeCommonInfo & CommonInfo)
- public static clang::AvailabilityAttr * Create(clang::ASTContext & Ctx, clang::IdentifierInfo * Platform, llvm::VersionTuple Introduced, llvm::VersionTuple Deprecated, llvm::VersionTuple Obsoleted, bool Unavailable, llvm::StringRef Message, bool Strict, llvm::StringRef Replacement, int Priority, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
- public static clang::AvailabilityAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Platform, llvm::VersionTuple Introduced, llvm::VersionTuple Deprecated, llvm::VersionTuple Obsoleted, bool Unavailable, llvm::StringRef Message, bool Strict, llvm::StringRef Replacement, int Priority, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
- public static clang::AvailabilityAttr * CreateImplicit(clang::ASTContext & Ctx, clang::IdentifierInfo * Platform, llvm::VersionTuple Introduced, llvm::VersionTuple Deprecated, llvm::VersionTuple Obsoleted, bool Unavailable, llvm::StringRef Message, bool Strict, llvm::StringRef Replacement, int Priority, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
- public static llvm::StringRef canonicalizePlatformName(llvm::StringRef Platform)
- public static bool classof(const clang::Attr * A)
- public clang::AvailabilityAttr * clone(clang::ASTContext & C) const
- public llvm::VersionTuple getDeprecated() const
- public llvm::VersionTuple getIntroduced() const
- public llvm::StringRef getMessage() const
- public unsigned int getMessageLength() const
- public llvm::VersionTuple getObsoleted() const
- public clang::IdentifierInfo * getPlatform() const
- public static llvm::StringRef getPlatformNameSourceSpelling(llvm::StringRef Platform)
- public static llvm::StringRef getPrettyPlatformName(llvm::StringRef Platform)
- public int getPriority() const
- public llvm::StringRef getReplacement() const
- public unsigned int getReplacementLength() const
- public const char * getSpelling() const
- public bool getStrict() const
- public bool getUnavailable() const
- public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
- public void setDeprecated(clang::ASTContext & C, llvm::VersionTuple V)
- public void setIntroduced(clang::ASTContext & C, llvm::VersionTuple V)
- public void setMessage(clang::ASTContext & C, llvm::StringRef S)
- public void setObsoleted(clang::ASTContext & C, llvm::VersionTuple V)
- public void setReplacement(clang::ASTContext & C, llvm::StringRef S)
Inherited from InheritableAttr:
Inherited from Attr:
- public clone
- public getDocumentation
- public getKind
- public getLocation
- public getSpelling
- public getSpellingListIndex
- public isImplicit
- public isInherited
- public isLateParsed
- public isPackExpansion
- public printPretty
- public setImplicit
- public setPackExpansion
Inherited from AttributeCommonInfo:
- public getAttrName
- public getAttributeSpellingListIndex
- public getLoc
- public getNormalizedFullName
- public getParsedKind
- public getParsedKind
- public getRange
- public getScopeLoc
- public getScopeName
- public getSyntax
- public hasScope
- public isAlignasAttribute
- protected isAttributeSpellingListCalculated
- public isC2xAttribute
- public isCXX11Attribute
- public isClangScope
- public isContextSensitiveKeywordAttribute
- public isDeclspecAttribute
- public isGNUAttribute
- public isGNUScope
- public isKeywordAttribute
- public isMicrosoftAttribute
- public isStandardAttributeSyntax
- public setAttributeSpellingListIndex
- public setRange
Methods
¶AvailabilityAttr(
clang::ASTContext& Ctx,
const clang::AttributeCommonInfo& CommonInfo,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority)
AvailabilityAttr(
clang::ASTContext& Ctx,
const clang::AttributeCommonInfo& CommonInfo,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1711
Parameters
- clang::ASTContext& Ctx
- const clang::AttributeCommonInfo& CommonInfo
- clang::IdentifierInfo* Platform
- llvm::VersionTuple Introduced
- llvm::VersionTuple Deprecated
- llvm::VersionTuple Obsoleted
- bool Unavailable
- llvm::StringRef Message
- bool Strict
- llvm::StringRef Replacement
- int Priority
¶static clang::AvailabilityAttr* Create(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
const clang::AttributeCommonInfo& CommonInfo)
static clang::AvailabilityAttr* Create(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
const clang::AttributeCommonInfo& CommonInfo)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1706
Parameters
- clang::ASTContext& Ctx
- clang::IdentifierInfo* Platform
- llvm::VersionTuple Introduced
- llvm::VersionTuple Deprecated
- llvm::VersionTuple Obsoleted
- bool Unavailable
- llvm::StringRef Message
- bool Strict
- llvm::StringRef Replacement
- int Priority
- const clang::AttributeCommonInfo& CommonInfo
¶static clang::AvailabilityAttr* Create(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
static clang::AvailabilityAttr* Create(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1708
Parameters
- clang::ASTContext& Ctx
- clang::IdentifierInfo* Platform
- llvm::VersionTuple Introduced
- llvm::VersionTuple Deprecated
- llvm::VersionTuple Obsoleted
- bool Unavailable
- llvm::StringRef Message
- bool Strict
- llvm::StringRef Replacement
- int Priority
- clang::SourceRange Range
- AttributeCommonInfo::Syntax Syntax
¶static clang::AvailabilityAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
static clang::AvailabilityAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
clang::SourceRange Range,
AttributeCommonInfo::Syntax Syntax)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1707
Parameters
- clang::ASTContext& Ctx
- clang::IdentifierInfo* Platform
- llvm::VersionTuple Introduced
- llvm::VersionTuple Deprecated
- llvm::VersionTuple Obsoleted
- bool Unavailable
- llvm::StringRef Message
- bool Strict
- llvm::StringRef Replacement
- int Priority
- clang::SourceRange Range
- AttributeCommonInfo::Syntax Syntax
¶static clang::AvailabilityAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
const clang::AttributeCommonInfo& CommonInfo =
{clang::SourceRange{}})
static clang::AvailabilityAttr* CreateImplicit(
clang::ASTContext& Ctx,
clang::IdentifierInfo* Platform,
llvm::VersionTuple Introduced,
llvm::VersionTuple Deprecated,
llvm::VersionTuple Obsoleted,
bool Unavailable,
llvm::StringRef Message,
bool Strict,
llvm::StringRef Replacement,
int Priority,
const clang::AttributeCommonInfo& CommonInfo =
{clang::SourceRange{}})
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1705
Parameters
- clang::ASTContext& Ctx
- clang::IdentifierInfo* Platform
- llvm::VersionTuple Introduced
- llvm::VersionTuple Deprecated
- llvm::VersionTuple Obsoleted
- bool Unavailable
- llvm::StringRef Message
- bool Strict
- llvm::StringRef Replacement
- int Priority
- const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}
¶static llvm::StringRef canonicalizePlatformName(
llvm::StringRef Platform)
static llvm::StringRef canonicalizePlatformName(
llvm::StringRef Platform)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1823
Parameters
- llvm::StringRef Platform
¶static bool classof(const clang::Attr* A)
static bool classof(const clang::Attr* A)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1838
Parameters
- const clang::Attr* A
¶clang::AvailabilityAttr* clone(
clang::ASTContext& C) const
clang::AvailabilityAttr* clone(
clang::ASTContext& C) const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1723
Parameters
¶llvm::VersionTuple getDeprecated() const
llvm::VersionTuple getDeprecated() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1738
¶llvm::VersionTuple getIntroduced() const
llvm::VersionTuple getIntroduced() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1731
¶llvm::StringRef getMessage() const
llvm::StringRef getMessage() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1756
¶unsigned int getMessageLength() const
unsigned int getMessageLength() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1759
¶llvm::VersionTuple getObsoleted() const
llvm::VersionTuple getObsoleted() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1745
¶clang::IdentifierInfo* getPlatform() const
clang::IdentifierInfo* getPlatform() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1727
¶static llvm::StringRef
getPlatformNameSourceSpelling(
llvm::StringRef Platform)
static llvm::StringRef
getPlatformNameSourceSpelling(
llvm::StringRef Platform)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1808
Parameters
- llvm::StringRef Platform
¶static llvm::StringRef getPrettyPlatformName(
llvm::StringRef Platform)
static llvm::StringRef getPrettyPlatformName(
llvm::StringRef Platform)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1790
Parameters
- llvm::StringRef Platform
¶int getPriority() const
int getPriority() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1786
¶llvm::StringRef getReplacement() const
llvm::StringRef getReplacement() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1773
¶unsigned int getReplacementLength() const
unsigned int getReplacementLength() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1776
¶const char* getSpelling() const
const char* getSpelling() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1726
¶bool getStrict() const
bool getStrict() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1769
¶bool getUnavailable() const
bool getUnavailable() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1752
¶void printPretty(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
void printPretty(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1724
Parameters
- llvm::raw_ostream& OS
- const clang::PrintingPolicy& Policy
¶void setDeprecated(clang::ASTContext& C,
llvm::VersionTuple V)
void setDeprecated(clang::ASTContext& C,
llvm::VersionTuple V)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1741
Parameters
¶void setIntroduced(clang::ASTContext& C,
llvm::VersionTuple V)
void setIntroduced(clang::ASTContext& C,
llvm::VersionTuple V)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1734
Parameters
¶void setMessage(clang::ASTContext& C,
llvm::StringRef S)
void setMessage(clang::ASTContext& C,
llvm::StringRef S)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1762
Parameters
¶void setObsoleted(clang::ASTContext& C,
llvm::VersionTuple V)
void setObsoleted(clang::ASTContext& C,
llvm::VersionTuple V)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1748
Parameters
¶void setReplacement(clang::ASTContext& C,
llvm::StringRef S)
void setReplacement(clang::ASTContext& C,
llvm::StringRef S)
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1779