clang API Documentation

clang::AlignedAttr Class Reference

Atribute for specifying the alignment of a variable or type. More...

#include <Attr.h>

Inheritance diagram for clang::AlignedAttr:
Inheritance graph
[legend]
Collaboration diagram for clang::AlignedAttr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AlignedAttr (unsigned alignment)
 AlignedAttr (Expr *E)
ExprgetAlignmentExpr () const
 getAlignmentExpr - Get a dependent alignment expression if one is present.
bool isDependent () const
 isDependent - Is the alignment a dependent expression
unsigned getAlignment () const
 getAlignment - The specified alignment in bits. Requires !isDependent().
unsigned getMaxAlignment () const
 getMaxAlignment - Get the maximum alignment of attributes on this list.
virtual Attrclone (ASTContext &C) const

Static Public Member Functions

static bool classof (const Attr *A)
static bool classof (const AlignedAttr *A)

Detailed Description

Atribute for specifying the alignment of a variable or type.

This node will either contain the precise Alignment (in bits, not bytes!) or will contain the expression for the alignment attribute in the case of a dependent expression within a class or function template. At template instantiation time these are transformed into concrete attributes.

Definition at line 156 of file Attr.h.


Constructor & Destructor Documentation

clang::AlignedAttr::AlignedAttr ( unsigned  alignment  )  [inline]

Definition at line 160 of file Attr.h.

Referenced by clone().

clang::AlignedAttr::AlignedAttr ( Expr E  )  [inline]

Definition at line 162 of file Attr.h.


Member Function Documentation

static bool clang::AlignedAttr::classof ( const AlignedAttr A  )  [inline, static]

Definition at line 196 of file Attr.h.

static bool clang::AlignedAttr::classof ( const Attr A  )  [inline, static]

Reimplemented from clang::Attr.

Definition at line 193 of file Attr.h.

References clang::Attr::getKind().

Attr * AlignedAttr::clone ( ASTContext C  )  const [virtual]

Implements clang::Attr.

Definition at line 137 of file AttrImpl.cpp.

References AlignedAttr().

unsigned clang::AlignedAttr::getAlignment (  )  const [inline]

getAlignment - The specified alignment in bits. Requires !isDependent().

Definition at line 176 of file Attr.h.

References isDependent().

Expr* clang::AlignedAttr::getAlignmentExpr (  )  const [inline]

getAlignmentExpr - Get a dependent alignment expression if one is present.

Definition at line 166 of file Attr.h.

unsigned clang::AlignedAttr::getMaxAlignment (  )  const [inline]

getMaxAlignment - Get the maximum alignment of attributes on this list.

Definition at line 182 of file Attr.h.

References getMaxAlignment().

Referenced by getMaxAlignment().

bool clang::AlignedAttr::isDependent (  )  const [inline]

isDependent - Is the alignment a dependent expression

Definition at line 171 of file Attr.h.


The documentation for this class was generated from the following files: