Released YYYY/MM/DD
- TODO (or remove section if none)
- TODO (or remove section if none)
- TODO (or remove section if none)
- TODO (or remove section if none)
- TODO (or remove section if none)
- TODO (or remove section if none)
Released 2025/11/5
- Fold expressions are supported. (#303)[#303]
-
We are now less conservative when accepting the legacy production for increased compatibility with libiberty.
-
When printing conversion and cast operators we now treat the type we are converting/casting to as a self-contained child and prevent outer template parameters/etc from leaking into it.
-
When looking for a production after a conversion operator, we now correctly handle the case where peeking for the next character fails because we reached the end of the symbol.
-
When parsing <unqualified-name productions, accept both with and without an "on" prefix. LLVM requires the prefix, while libiberty accepts but does not require it.
-
Empty braced-enclosed initializer lists are now accepted.
Released 2025/9/23
- A new
Symbol::demanglefunction has been introduced to replace theDisplayimpl. See below for the motivation.
- The function previously known as
Symbol::demanglehas been renamed toSymbol::demangle_with_options. See below for the motivation.
- The implementation of
DisplayforSymbolhas been removed. This implementation violated the contract of theDisplaytrait by potentially returning anErrwithout a failure of a write to the provided stream. This contract is enforced by assertion since Rust 1.80.0. The newSymbol::demanglefunction is the intended replacement for uses of theDisplayimpl. (#233)[#233]
Released 2025/9/23
-
ABI tags are now accepted after all variants of qualified names. (#272)[#272]
-
Unqualified nested names without prefixes are accepted to match libiberty and LLVM.
-
Fixed-point types from the N1169 draft of ISO/IEC DTR 18037 (_Accum, _Fract) are supported. (#298)[#298]
-
The proposed (and widely implemented) explicitly named object parameters are supported. (#299)[#299]
Released 2024/8/28
- C++23 extended floating-point types (_FloatN, Float_Nx, and std::bfloat16_t) and integer types (_BitInt) are supported. (#295)[#295]
Released 2023/8/18
- Inheriting constructions now correctly add themselves to the substitution table, fixing issues with demangling symbols that use them and then use a later substitution. (#286)[#286]
Released 2023/6/26
- Handling of recursion depth errors has been improved. Exceeding cpp_demangle's recursion limits will now return immediately, which significantly improves performance when attempting to demangle these symbols, and removes the possibility of returning an incorrect demangling if any productions in the symbol might be ambiguous. (#284)[#284]
Released 2023/4/13
- A case of runaway recursion caused by parsing ambiguous input in an incorrect order has been fixed. (#280)[#280]
Released 2022/10/20
- The deprecated nightly and cppfilt features are gone.
- If no-default-features is used the alloc feature must be explicitly specified.
Released 2022/10/20
-
The non-deprecated versions of noexcept are supported. #273
-
Most of the subobject production that clang uses is supported. #273
-
Rust 2018 is now used. #251
-
cppfilt now uses clap 4.0. #271
-
no_std works. #251
-
Inheriting constructors no longer produce substitutable values. #272
Released 2021/12/02
- The LLVM mangling for vector types with a dimension expression is now supported. The libiberty mangling which appears to be unused by gcc has been removed.
Released 2021/11/21
DemangleOptionsnow has ahide_expression_literal_typesmethod that can make it easier to match user-provided template instance names. #230
Released 2021/7/8
- The builtin
char8_ttype is now recognized #224
globis no longer a build time dependency #220
Released 2020/11/27
ParseOptionsis introduced, with new API variantsSymbol::new_with_optionsandSymbol::with_tail_and_options. The existing APIs use the default parsing options.- Recursion limits are now configurable via
ParseOptionsandDemangleOptions. - Transaction clone symbols are supported #217
- The default parsing recursion limit is now 96 (up from 64). The value was chosen to avoid pathological symbols overflowing the stack of a debug build. Users may be able to safely raise the limits substantially depending on their expected workload and tolerance for crashes.
Released 2020/10/09
- Java Resource symbols are now supported #200
- C++ reference collapsing rules are honored.
- Misc style fixes.
- DemangleOptions is now repr(C)
Released 2020/06/11
- The DemangleOptions API has changed to be more future-proof and the
DemangleNodeType enum now has an __NonExhaustive variant to discourage
pattern matching without a
_ => ()arm.
Released 2020/06/09
-
Return types can now be elided from demangled symbols via DemangleOptions::no_return_typ. #202
-
A vtable marker is now emitted for semantic consumers.
Released 2020/05/13
-
Block invocation symbols. #197
-
The spaceship operator <=>. #198
Released 2020/04/24
-
A C API to cpp_demangle is now available. #191
-
Additional AST markers are emitted for semantic consumers. #189
- Multiple clone suffixes are now supported. #194
Released 2019/11/15
- Certain symbols can have cyclic back references, or at least very deep stacks of back references. Many of those symbols are valid! But as a practical implementation to avoid stack overflows and infinite loops, we now place a limit on the depth of back references we will follow. This is similar to the parse limit that we already had, but for a different phase of the demangling. #186
Released 2019/07/30
-
Fix parsing of outdated
srforms that prevented parsing other symbols. See #173 for details. -
Ensures a space is printed before a
&or&&reference qualifier. #176 -
Fixed placement of parentheses in symbols with function pointer arguments that have
constqualifiers. #175
Released 2018/08/09
- Actually fixed builds using
no-default-features = trueto not accidentally enableno_stdmode, which requires nightly rust, and break builds on non-nightly channels. Enabling theno_stdmode now requires disabling thestdfeature and enabling theallocfeature.
Released 2018/08/09
- Fixed builds using
no-default-features = trueto not accidentally enableno_stdmode, which requires nightly rust, and break builds on non-nightly channels. Enabling theno_stdmode now requires disabling thestdfeature and enabling theallocfeature.
Released 2018/08/08
- Added support for
no_std! This currently requires nightly Rust'sallocfeature to get access toBTreeMap. Enableno_stdsupport by building without the on-by-defaultstdfeature. #148
- Fixed formatting of some conversion operators. #149
- Fixed parsing some tricky symbols with template argument packs that came out of boost. #150 #152
Released 2018/05/14
- Fixed a few issues with parentheticals.
- Should not force recompilation via build.rs for every compile anymore (bug introduced in 0.2.8 when trying to make the package that is distributed on crates.io smaller).
Released 2018/05/11
Bug fixes, more libiberty tests passing, and we can now parse and demangle all
but one symbol from Firefox's libxul:
Total number of libxul symbols: 274346
Number of libxul symbols parsed: 274345 (100.00%)
Number of libxul symbols demangled: 274345 (100.00%)
Number of libxul symbols demangled same as libiberty: 227259 (82.84%)
- AFL.rs fuzzing integration is fixed for the new AFL.rs releases.
- Fixed formatting of constructors and destructors.
- Fixed parsing of the
<function-param>production. - Fixed parsing of call expression productions.
- Parsing an operator's operands will only parse as many operands as the operator's arity, instead of as many as it can.
Released 2017/11/27
Making lots of progress on symbols found in the wild! Here are our stats for
symbols from Firefox's libxul:
Total number of libxul symbols: 274346
Number of libxul symbols parsed: 274319 (99.99%)
Number of libxul symbols demangled: 274319 (99.99%)
Number of libxul symbols demangled same as libiberty: 199928 (72.88%)
Additionally, the libiberty test threshold bumped up from 70 to 83 during this
release.
- Added support for GCC's "global constructors" and "global destructors" extensions.
- Added support for GCC's extensions to the
<special-name>production: construction vtables, typeinfo functions, TLS initialization functions, TLS wrapper functions. - Added support for the now-defunct
<local-source-name>production. My understanding is that this is from an older version of the ABI standard. It isn't in the current version, but all the other demanglers support it, so we will too.
cpp_demangleis now part of thegimli-rsGitHub organization. The canonical repository is now https://github.com/gimli-rs/cpp_demangle- Literals are now formatted how
libibertyformats them. For example,foo<true>()rather thanfoo<1>(). - Unary operators are now formatted with parentheses, matching
libiberty.
- Nested array types and multi-dimensional arrays are now mangled correctly.
- Nested function types and their qualifiers are now mangled correctly.
- Arrays of function types and function types with array return and parameter types are now mangled correctly.
- The
newoperator is now correctly formatted asoperator newrather thanoperatornew. Same for thedeleteoperator.
Released 2017/11/08
- Added support for vector types
- Added support for ABI tags
- Added support for
<unqualified-name> ::= <closure-type-name>productions
- Fixed erroneous insertions into the substitutions table with prefixes and nested names
- Well known components were previously incorrectly not permitted to prefix template arguments