class AlignedAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private bool isalignmentExpr
private anonymous struct / union

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public AlignedAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, bool IsAlignmentExpr, void * Alignment)
  • public AlignedAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::AlignedAttr * Create(clang::ASTContext & Ctx, bool IsAlignmentExpr, void * Alignment, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::AlignedAttr * Create(clang::ASTContext & Ctx, bool IsAlignmentExpr, void * Alignment, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, AlignedAttr::Spelling S = static_cast<clang::AlignedAttr::Spelling>(SpellingNotCalculated))
  • public static clang::AlignedAttr * CreateImplicit(clang::ASTContext & Ctx, bool IsAlignmentExpr, void * Alignment, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax, AlignedAttr::Spelling S = static_cast<clang::AlignedAttr::Spelling>(SpellingNotCalculated))
  • public static clang::AlignedAttr * CreateImplicit(clang::ASTContext & Ctx, bool IsAlignmentExpr, void * Alignment, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static bool classof(const clang::Attr * A)
  • public clang::AlignedAttr * clone(clang::ASTContext & C) const
  • public unsigned int getAlignment(clang::ASTContext & Ctx) const
  • public clang::Expr * getAlignmentExpr() const
  • public clang::TypeSourceInfo * getAlignmentType() const
  • public clang::AlignedAttr::Spelling getSemanticSpelling() const
  • public const char * getSpelling() const
  • public bool isAlignas() const
  • public bool isAlignmentDependent() const
  • public bool isAlignmentErrorDependent() const
  • public bool isAlignmentExpr() const
  • public bool isC11() const
  • public bool isDeclspec() const
  • public bool isGNU() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

AlignedAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    bool IsAlignmentExpr,
    void* Alignment)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
bool IsAlignmentExpr
void* Alignment

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

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

Parameters

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

static clang::AlignedAttr* Create(
    clang::ASTContext& Ctx,
    bool IsAlignmentExpr,
    void* Alignment,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
bool IsAlignmentExpr
void* Alignment
const clang::AttributeCommonInfo& CommonInfo

static clang::AlignedAttr* Create(
    clang::ASTContext& Ctx,
    bool IsAlignmentExpr,
    void* Alignment,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    AlignedAttr::Spelling S =
        static_cast<clang::AlignedAttr::Spelling>(
            SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
bool IsAlignmentExpr
void* Alignment
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
AlignedAttr::Spelling S = static_cast<clang::AlignedAttr::Spelling>(SpellingNotCalculated)

static clang::AlignedAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    bool IsAlignmentExpr,
    void* Alignment,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax,
    AlignedAttr::Spelling S =
        static_cast<clang::AlignedAttr::Spelling>(
            SpellingNotCalculated))

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

Parameters

clang::ASTContext& Ctx
bool IsAlignmentExpr
void* Alignment
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax
AlignedAttr::Spelling S = static_cast<clang::AlignedAttr::Spelling>(SpellingNotCalculated)

static clang::AlignedAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    bool IsAlignmentExpr,
    void* Alignment,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
bool IsAlignmentExpr
void* Alignment
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

unsigned int getAlignment(
    clang::ASTContext& Ctx) const

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

Parameters

clang::ASTContext& Ctx

clang::Expr* getAlignmentExpr() const

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

clang::TypeSourceInfo* getAlignmentType() const

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

clang::AlignedAttr::Spelling getSemanticSpelling()
    const

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

const char* getSpelling() const

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

bool isAlignas() const

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

bool isAlignmentDependent() const

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

bool isAlignmentErrorDependent() const

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

bool isAlignmentExpr() const

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

bool isC11() const

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

bool isDeclspec() const

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

bool isGNU() const

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

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

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

Parameters

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