class AsmLabelAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private unsigned int labelLength
private char* label
private bool isLiteralLabel

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public AsmLabelAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, llvm::StringRef Label)
  • public AsmLabelAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, llvm::StringRef Label, bool IsLiteralLabel)
  • public static clang::AsmLabelAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Label, bool IsLiteralLabel, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::AsmLabelAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Label, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::AsmLabelAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Label, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::AsmLabelAttr * Create(clang::ASTContext & Ctx, llvm::StringRef Label, bool IsLiteralLabel, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::AsmLabelAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Label, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::AsmLabelAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Label, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::AsmLabelAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Label, bool IsLiteralLabel, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::AsmLabelAttr * CreateImplicit(clang::ASTContext & Ctx, llvm::StringRef Label, bool IsLiteralLabel, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static bool classof(const clang::Attr * A)
  • public clang::AsmLabelAttr * clone(clang::ASTContext & C) const
  • public bool getIsLiteralLabel() const
  • public llvm::StringRef getLabel() const
  • public unsigned int getLabelLength() const
  • public const char * getSpelling() const
  • public bool isEquivalent(clang::AsmLabelAttr * Other) const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
  • public void setLabel(clang::ASTContext & C, llvm::StringRef S)

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

AsmLabelAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    llvm::StringRef Label)

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

Parameters

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

AsmLabelAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    llvm::StringRef Label,
    bool IsLiteralLabel)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
llvm::StringRef Label
bool IsLiteralLabel

static clang::AsmLabelAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Label,
    bool IsLiteralLabel,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Label
bool IsLiteralLabel
const clang::AttributeCommonInfo& CommonInfo

static clang::AsmLabelAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Label,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Label
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

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

static clang::AsmLabelAttr* Create(
    clang::ASTContext& Ctx,
    llvm::StringRef Label,
    bool IsLiteralLabel,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Label
bool IsLiteralLabel
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

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

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

Parameters

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

static clang::AsmLabelAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Label,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Label
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::AsmLabelAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Label,
    bool IsLiteralLabel,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Label
bool IsLiteralLabel
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::AsmLabelAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    llvm::StringRef Label,
    bool IsLiteralLabel,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
llvm::StringRef Label
bool IsLiteralLabel
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

bool getIsLiteralLabel() const

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

llvm::StringRef getLabel() const

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

unsigned int getLabelLength() const

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

const char* getSpelling() const

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

bool isEquivalent(
    clang::AsmLabelAttr* Other) const

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

Parameters

clang::AsmLabelAttr* Other

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

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

Parameters

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

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

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

Parameters

clang::ASTContext& C
llvm::StringRef S