class ConstInitAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

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

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

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

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

Parameters

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

static clang::ConstInitAttr* Create(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

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

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

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

Parameters

clang::ASTContext& Ctx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
ConstInitAttr::Spelling S = static_cast<clang::ConstInitAttr::Spelling>(SpellingNotCalculated)

static clang::ConstInitAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

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

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

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

Parameters

clang::ASTContext& Ctx
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
ConstInitAttr::Spelling S = static_cast<clang::ConstInitAttr::Spelling>(SpellingNotCalculated)

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::ConstInitAttr::Spelling
getSemanticSpelling() const

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

const char* getSpelling() const

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

bool isConstinit() const

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

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

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

Parameters

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