TargetCPP

Functions and variables specific to interface with extern(C++) ABI.

Members

Functions

fundamentalType
bool fundamentalType(Type t, bool isFundamental)

Checks whether type is a vendor-specific fundamental type.

initialize
void initialize(Param params, Target target)
Undocumented in source. Be warned that the author may not have intended to support it.
parameterType
Type parameterType(Parameter p)

Get the type that will really be used for passing the given argument to an extern(C++) function.

thunkMangle
const(char)* thunkMangle(FuncDeclaration fd, int offset)

Get mangle name of a this-adjusting thunk to the given function declaration for C++ ABI.

toMangle
const(char)* toMangle(Dsymbol s)

Mangle the given symbol for C++ ABI.

typeInfoMangle
const(char)* typeInfoMangle(ClassDeclaration cd)

Get RTTI mangling of the given class declaration for C++ ABI.

typeMangle
const(char)* typeMangle(Type t)

Gets vendor-specific type mangling for C++ ABI.

Variables

exceptions
bool exceptions;

set if catching C++ exceptions is supported

reverseOverloads
bool reverseOverloads;

set if overloaded functions are grouped and in reverse order (such as in dmc and cl)

twoDtorInVtable
bool twoDtorInVtable;

target C++ ABI puts deleting and non-deleting destructor into vtable

Meta