clang API Documentation
Atribute for specifying the alignment of a variable or type. More...
#include <Attr.h>


Public Member Functions | |
| AlignedAttr (unsigned alignment) | |
| AlignedAttr (Expr *E) | |
| Expr * | getAlignmentExpr () 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 Attr * | clone (ASTContext &C) const |
Static Public Member Functions | |
| static bool | classof (const Attr *A) |
| static bool | classof (const AlignedAttr *A) |
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.
| clang::AlignedAttr::AlignedAttr | ( | unsigned | alignment | ) | [inline] |
| static bool clang::AlignedAttr::classof | ( | const AlignedAttr * | A | ) | [inline, static] |
| 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] |
| 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.
| 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