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 bool unavailable
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:

protected static SpellingNotCalculated = 15

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:

Inherited from AttributeCommonInfo:

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)

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)

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)

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)

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{}})

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)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1823

Parameters

llvm::StringRef Platform

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

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1723

Parameters

clang::ASTContext& C

llvm::VersionTuple getDeprecated() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1738

llvm::VersionTuple getIntroduced() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1731

llvm::StringRef getMessage() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1756

unsigned int getMessageLength() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1759

llvm::VersionTuple getObsoleted() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1745

clang::IdentifierInfo* getPlatform() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1727

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)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1790

Parameters

llvm::StringRef Platform

int getPriority() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1786

llvm::StringRef getReplacement() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1773

unsigned int getReplacementLength() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1776

const char* getSpelling() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1726

bool getStrict() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1769

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

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)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1741

Parameters

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

clang::ASTContext& C
llvm::VersionTuple V

void setMessage(clang::ASTContext& C,
                llvm::StringRef S)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1762

Parameters

clang::ASTContext& C
llvm::StringRef S

void setObsoleted(clang::ASTContext& C,
                  llvm::VersionTuple V)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1748

Parameters

clang::ASTContext& C
llvm::VersionTuple V

void setReplacement(clang::ASTContext& C,
                    llvm::StringRef S)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:1779

Parameters

clang::ASTContext& C
llvm::StringRef S