dmd.dmangle

Does name mangling for extern(D) symbols.

Specification: Name Mangling

Members

Functions

isValidMangling
bool isValidMangling(dchar c)
mangleExact
const(char)* mangleExact(FuncDeclaration fd)

Returns exact mangled name of function.

mangleToBuffer
void mangleToBuffer(Type t, OutBuffer* buf)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleToBuffer
void mangleToBuffer(Expression e, OutBuffer* buf)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleToBuffer
void mangleToBuffer(TemplateInstance ti, OutBuffer* buf)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleToBuffer
void mangleToBuffer(Dsymbol s, OutBuffer* buf)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleToFuncSignature
void mangleToFuncSignature(OutBuffer buf, FuncDeclaration fd)

Mangle function signatures ('this' qualifier, and parameter types) to check conflicts in function overloads. It's different from fd.type.deco. For example, fd.type.deco would be null if fd is an auto function.

Meta