class CapabilityAttr

Declaration

class CapabilityAttr : public InheritableAttr { /* full declaration omitted */ };

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private unsigned int nameLength
private char* name

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public CapabilityAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, llvm::StringRef Name)
  • public static clang::CapabilityAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Name, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::CapabilityAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Name, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, CapabilityAttr::Spelling S = static_cast<clang::CapabilityAttr::Spelling>(SpellingNotCalculated))
  • public static clang::CapabilityAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Name, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::CapabilityAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Name, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, CapabilityAttr::Spelling S = static_cast<clang::CapabilityAttr::Spelling>(SpellingNotCalculated))
  • public static bool classof(const clang::Attr * A)
  • public clang::CapabilityAttr * clone(clang::ASTContext & C) const
  • public llvm::StringRef getName() const
  • public unsigned int getNameLength() const
  • public clang::CapabilityAttr::Spelling getSemanticSpelling() const
  • public const char * getSpelling() const
  • public bool isShared() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
  • public void setName(clang::ASTContext & C, llvm::StringRef S)

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

CapabilityAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    llvm::StringRef Name)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
llvm::StringRef Name

static clang::CapabilityAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
const clang::AttributeCommonInfo& CommonInfo

static clang::CapabilityAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    CapabilityAttr::Spelling S = static_cast<
        clang::CapabilityAttr::Spelling>(
        SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
CapabilityAttr::Spelling S = static_cast<clang::CapabilityAttr::Spelling>(SpellingNotCalculated)

static clang::CapabilityAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::CapabilityAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Name,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    CapabilityAttr::Spelling S = static_cast<
        clang::CapabilityAttr::Spelling>(
        SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Name
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
CapabilityAttr::Spelling S = static_cast<clang::CapabilityAttr::Spelling>(SpellingNotCalculated)

static bool classof(const clang::Attr* A)

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

Parameters

const clang::Attr* A

clang::CapabilityAttr* clone(
    clang::ASTContext& C) const

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

Parameters

clang::ASTContext& C

llvm::StringRef getName() const

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

unsigned int getNameLength() const

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

clang::CapabilityAttr::Spelling
getSemanticSpelling() const

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

const char* getSpelling() const

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

bool isShared() const

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

void printPretty(
    llvm::raw_ostream& OS,
    const clang::PrintingPolicy& Policy) const

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

Parameters

llvm::raw_ostream& OS
const clang::PrintingPolicy& Policy

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

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

Parameters

clang::ASTContext& C
llvm::StringRef S