dmd.hdrgen

Generate D interface files.

Also used to convert AST nodes to D code in general, e.g. for error messages or printf debugging.

Members

Functions

EXPtoString
string EXPtoString(EXP op)

Convert EXP to char*.

argExpTypesToCBuffer
void argExpTypesToCBuffer(OutBuffer buf, Expressions* arguments)

Write out argument types to buf.

floatToBuffer
void floatToBuffer(Type type, real_t value, OutBuffer buf, bool allowHex)

Formats value as a literal of type type into buf.

genhdrfile
void genhdrfile(Module m, OutBuffer buf)

Generate a header (.di) file for Module m.

moduleToBuffer
void moduleToBuffer(OutBuffer buf, Module m)

Dumps the full contents of module m to buf.

parameterToChars
const(char)* parameterToChars(Parameter parameter, TypeFunction tf, bool fullQual)

Pretty print function parameter.

parametersTypeToChars
const(char)* parametersTypeToChars(ParameterList pl)

Pretty print function parameters.

stcToString
string stcToString(StorageClass stc)

Pick off one of the storage classes from stc, and return a string representation of it. stc is reduced by the one picked.

toChars
const(char)* toChars(Statement s)

Turn a Statement into a string suitable for printf. Leaks memory.

visibilityToChars
const(char)* visibilityToChars(Visibility.Kind kind)
visibilityToString
string visibilityToString(Visibility.Kind kind)

Structs

HdrGenState
struct HdrGenState
Undocumented in source.

Meta