Documentation
¶
Index ¶
Constants ¶
const (
LLGoPackage = "link: $(llvm-config --libs) $(llvm-config --ldflags); -lLLVM"
)
Variables ¶
This section is empty.
Functions ¶
func ItaniumDemangle ¶
func ItaniumDemangle(mangledName StringView, parseParams bool) *c.Char
Returns a non-NULL pointer to a NUL-terminated C style string that should be explicitly freed, if successful. Otherwise, may return nullptr if mangled_name is not a valid mangling or is nullptr.
char *itaniumDemangle(std::string_view mangled_name, bool ParseParams = true);
func MicrosoftDemangle ¶
func MicrosoftDemangle(mangledName StringView, nRead *uintptr, status *c.Int, flags MSDemangleFlags) *c.Char
Demangles the Microsoft symbol pointed at by mangled_name and returns it. Returns a pointer to the start of a null-terminated demangled string on success, or nullptr on error.
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.
char *microsoftDemangle(std::string_view mangled_name, size_t *n_read, int *status, MSDemangleFlags Flags = MSDF_None);
func RustDemangle ¶
func RustDemangle(mangledName StringView) *c.Char
Demangles a Rust v0 mangled symbol.
char *rustDemangle(std::string_view MangledName);
Types ¶
type MSDemangleFlags ¶
enum MSDemangleFlags { MSDF_None = 0, MSDF_DumpBackrefs = 1 << 0, MSDF_NoAccessSpecifier = 1 << 1, MSDF_NoCallingConvention = 1 << 2, MSDF_NoReturnType = 1 << 3, MSDF_NoMemberType = 1 << 4, MSDF_NoVariableType = 1 << 5, };