BitFieldDeclaration

C11 6.7.2.1-4 bit fields

extern (C++)
class BitFieldDeclaration : VarDeclaration {
Expression width;
uint fieldWidth;
uint bitOffset;
}

Members

Functions

getMinMax
ulong getMinMax(Identifier id)

Retrieve the .min or .max values. Only valid after semantic analysis.

Inherited Members

From VarDeclaration

isDataseg
bool isDataseg()

Does symbol go into data segment? Includes extern variables.

isThreadlocal
bool isThreadlocal()

Does symbol go into thread local storage?

isCTFE
bool isCTFE()

Can variable be read and written by CTFE?

canTakeAddressOf
bool canTakeAddressOf()

Return true if we can take the address of this variable.

needsScopeDtor
bool needsScopeDtor()

Return true if variable needs to call the destructor.

callScopeDtor
Expression callScopeDtor(Scope* sc)

If a variable has a scope destructor call, return call for it. Otherwise, return NULL.

getConstInitializer
Expression getConstInitializer(bool needFullType)

If variable has a constant expression initializer, get it. Otherwise, return null.

expandInitializer
Expression expandInitializer(Loc loc)

Helper function for the expansion of manifest constant.

checkNestedReference
bool checkNestedReference(Scope* sc, Loc loc)

Check to see if this variable is actually in an enclosing function rather than the current one. Update nestedrefs[], closureVars[] and outerVars[].

Meta