AlignDeclaration

Alignment attribute for aggregates, members and variables.

align(<ealign>) <decl...> or align <decl...> if ealign is null

Members

Variables

UNKNOWN
enum structalign_t UNKNOWN;

alignment not yet computed

ealign
Expression ealign;

expression yielding the actual alignment

salign
structalign_t salign;

the actual alignment, UNKNOWN until it's either set to the value of ealign or STRUCTALIGN_DEFAULT if ealign is null ( / an error ocurred)

Inherited Members

From AttribDeclaration

decl
Dsymbols* decl;

Dsymbol's affected by this AttribDeclaration

createNewScope
Scope* createNewScope(Scope* sc, StorageClass stc, LINK linkage, CPPMANGLE cppmangle, Visibility visibility, int explicitVisibility, AlignDeclaration aligndecl, PragmaDeclaration inlining)

Create a new scope if one or more given attributes are different from the sc's. If the returned scope != sc, the caller should pop the scope after it used.

newScope
Scope* newScope(Scope* sc)

A hook point to supply scope for members. addMember, setScope, importAll, semantic, semantic2 and semantic3 will use this.

addLocalClass
void addLocalClass(ClassDeclarations* aclasses)
Suggestion Box / Bug Report