Help us shape the future of Go! Take the 2026 Go Developer Survey

llvm

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
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

type MSDemangleFlags c.Int
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,
};

type StringView

type StringView = string

StringView represents a C++ std::string_view object.

Directories

Path Synopsis
_demo
demangle command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL