Demangle a Microsoft mangled symbol name.

Synopsis

Declared in <llvm/Demangle/Demangle.h>

char*
microsoftDemangle(
    std::string_view mangled_name,
    size_t* n_read,
    int* status,
    MSDemangleFlags Flags = MSDF_None);

Description

If n_read is non‐null and demangling was successful, it receives how many bytes of the input string were consumed. status receives one of the demangle_ enum entries above if it's not nullptr. Flags controls various details of the demangled representation.

Return Value

a pointer to a null‐terminated demangled string on success, or nullptr on error.

Parameters

Name

Description

mangled_name

‐ the Microsoft mangled name to demangle.

n_read

‐ if non‐null, set to the number of input bytes consumed.

status

‐ if non‐null, set to a demangle_ status code.

Flags

‐ formatting options for the demangled representation.

Created with MrDocs