class SentinelAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private int sentinel
private int nullPos
public static const int DefaultSentinel = 0
public static const int DefaultNullPos = 0

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public static clang::SentinelAttr * Create(clang::ASTContext & Ctx, int Sentinel, int NullPos, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::SentinelAttr * Create(clang::ASTContext & Ctx, int Sentinel, int NullPos, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::SentinelAttr * CreateImplicit(clang::ASTContext & Ctx, int Sentinel, int NullPos, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::SentinelAttr * CreateImplicit(clang::ASTContext & Ctx, int Sentinel, int NullPos, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public SentinelAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, int Sentinel, int NullPos)
  • public SentinelAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo)
  • public static bool classof(const clang::Attr * A)
  • public clang::SentinelAttr * clone(clang::ASTContext & C) const
  • public int getNullPos() const
  • public int getSentinel() const
  • public const char * getSpelling() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static clang::SentinelAttr* Create(
    clang::ASTContext& Ctx,
    int Sentinel,
    int NullPos,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
int Sentinel
int NullPos
const clang::AttributeCommonInfo& CommonInfo

static clang::SentinelAttr* Create(
    clang::ASTContext& Ctx,
    int Sentinel,
    int NullPos,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
int Sentinel
int NullPos
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::SentinelAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    int Sentinel,
    int NullPos,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
int Sentinel
int NullPos
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::SentinelAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    int Sentinel,
    int NullPos,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
int Sentinel
int NullPos
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

SentinelAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    int Sentinel,
    int NullPos)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
int Sentinel
int NullPos

SentinelAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

int getNullPos() const

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

int getSentinel() const

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

const char* getSpelling() const

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

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

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

Parameters

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