Skip to content

Switch default mangling back to cpp #25338

@arnetheduck

Description

@arnetheduck

Summary

#25264 introduced a switch for name mangling - however, it should default to C++ since this provides a much better developer experience.

Description

C++ name mangling provides a significantly better developer experience since it integrates with GDB, vtune, valgrind etc - libbacktrace has now been updated to support it as well, meaning that efficient backtraces also show demangled names.

The default has been C++ for a number of versions now meaning that build systems and users have come to expect C++ names - as such, it would be nice to switch the default back to cpp.

Further out, libbacktrace-nim will learn to demangle the Nim name to "nim style" instead of the "C++ style" that it uses now - this will allow fully round-tripping nim names in the backtrace providing familiar Nim syntax.

Alternatives

No response

Examples

No response

Backwards Compatibility

No response

Links

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions