class LayoutVersionAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private unsigned int version

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::LayoutVersionAttr * Create(clang::ASTContext & Ctx, unsigned int Version, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::LayoutVersionAttr * Create(clang::ASTContext & Ctx, unsigned int Version, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::LayoutVersionAttr * CreateImplicit(clang::ASTContext & Ctx, unsigned int Version, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::LayoutVersionAttr * CreateImplicit(clang::ASTContext & Ctx, unsigned int Version, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public LayoutVersionAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, unsigned int Version)
  • public static bool classof(const clang::Attr * A)
  • public clang::LayoutVersionAttr * clone(clang::ASTContext & C) const
  • public const char * getSpelling() const
  • public unsigned int getVersion() 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::LayoutVersionAttr* Create(
    clang::ASTContext& Ctx,
    unsigned int Version,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
unsigned int Version
const clang::AttributeCommonInfo& CommonInfo

static clang::LayoutVersionAttr* Create(
    clang::ASTContext& Ctx,
    unsigned int Version,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
unsigned int Version
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::LayoutVersionAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    unsigned int Version,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

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

static clang::LayoutVersionAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    unsigned int Version,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
unsigned int Version
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

LayoutVersionAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    unsigned int Version)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
unsigned int Version

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

const char* getSpelling() const

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

unsigned int getVersion() const

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

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

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

Parameters

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