Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Unreleased
2
3 Released YYYY/MM/DD
4
5 ## Added
6
7 * TODO (or remove section if none)
8
9 ## Changed
10
11 * TODO (or remove section if none)
12
13 ## Deprecated
14
15 * TODO (or remove section if none)
16
17 ## Removed
18
19 * TODO (or remove section if none)
20
21 ## Fixed
22
23 * TODO (or remove section if none)
24
25 ## Security
26
27 * TODO (or remove section if none)
28
29 --------------------------------------------------------------------------------
30
31 # 0.5.1
32
33 Released 2025/11/5
34
35 ## Added
36
37 * Fold expressions are supported. (#303)[https://github.com/gimli-rs/cpp_demangle/pull/303]
38
39 ## Fixed
40
41 * We are now less conservative when accepting the legacy <data-member-prefix>
42 production for increased compatibility with libiberty.
43
44 * When printing conversion and cast operators we now treat the type we are
45 converting/casting to as a self-contained child and prevent outer template
46 parameters/etc from leaking into it.
47
48 * When looking for a <template-template-param> production after a conversion
49 operator, we now correctly handle the case where peeking for the next character
50 fails because we reached the end of the symbol.
51
52 * When parsing <unqualified-name productions, accept <operator-names> both
53 with and without an "on" prefix. LLVM requires the prefix, while libiberty
54 accepts but does not require it.
55
56 * Empty braced-enclosed initializer lists are now accepted.
57
58 --------------------------------------------------------------------------------
59
60 # 0.5.0
61
62 Released 2025/9/23
63
64 ## Added
65
66 * A new `Symbol::demangle` function has been introduced to replace the `Display`
67 impl. See below for the motivation.
68
69 ## Changed
70
71 * The function previously known as `Symbol::demangle` has been renamed to
72 `Symbol::demangle_with_options`. See below for the motivation.
73
74 ## Removed
75
76 * The implementation of `Display` for `Symbol` has been removed. This implementation
77 violated the contract of the `Display` trait by potentially returning an `Err`
78 without a failure of a write to the provided stream. This contract is enforced
79 by assertion since [Rust 1.80.0](https://github.com/rust-lang/rust/pull/125012).
80 The new `Symbol::demangle` function is the intended replacement for uses of
81 the `Display` impl.
82 (#233)[https://github.com/gimli-rs/cpp_demangle/issues/233]
83
84 --------------------------------------------------------------------------------
85
86 # 0.4.5
87
88 Released 2025/9/23
89
90 ## Fixed
91
92 * ABI tags are now accepted after all variants of qualified names.
93 (#272)[https://github.com/gimli-rs/cpp_demangle/issues/272]
94
95 * Unqualified nested names without prefixes are accepted to match
96 libiberty and LLVM.
97
98 ## Added
99
100 * Fixed-point types from the N1169 draft of ISO/IEC DTR 18037 (_Accum, _Fract)
101 are supported. (#298)[https://github.com/gimli-rs/cpp_demangle/pull/298]
102
103 * The proposed (and widely implemented) explicitly named object parameters are
104 supported. (#299)[https://github.com/gimli-rs/cpp_demangle/pull/299]
105
106 --------------------------------------------------------------------------------
107
108 # 0.4.4
109
110 Released 2024/8/28
111
112 ## Added
113
114 * C++23 extended floating-point types (_FloatN, Float_Nx, and std::bfloat16_t)
115 and integer types (_BitInt) are supported.
116 (#295)[https://github.com/gimli-rs/cpp_demangle/pull/295]
117
118 --------------------------------------------------------------------------------
119
120 # 0.4.3
121
122 Released 2023/8/18
123
124 ## Fixed
125
126 * Inheriting constructions now correctly add themselves to the substitution table,
127 fixing issues with demangling symbols that use them and then use a later
128 substitution. (#286)[https://github.com/gimli-rs/cpp_demangle/issues/286]
129
130 --------------------------------------------------------------------------------
131
132 # 0.4.2
133
134 Released 2023/6/26
135
136 ## Fixed
137
138 * Handling of recursion depth errors has been improved. Exceeding cpp_demangle's
139 recursion limits will now return immediately, which significantly improves
140 performance when attempting to demangle these symbols, and removes the possibility
141 of returning an incorrect demangling if any productions in the symbol might be
142 ambiguous. (#284)[https://github.com/gimli-rs/cpp_demangle/pull/284]
143
144 --------------------------------------------------------------------------------
145
146 # 0.4.1
147
148 Released 2023/4/13
149
150 ## Fixed
151
152 * A case of runaway recursion caused by parsing ambiguous input in an incorrect
153 order has been fixed. (#280)[https://github.com/gimli-rs/cpp_demangle/pull/280]
154
155 --------------------------------------------------------------------------------
156
157 # 0.4.0
158
159 Released 2022/10/20
160
161 ## Removed
162
163 * The deprecated nightly and cppfilt features are gone.
164
165 ## Changed
166
167 * If no-default-features is used the alloc feature must be explicitly specified.
168
169 --------------------------------------------------------------------------------
170
171 # 0.3.6
172
173 Released 2022/10/20
174
175 ## Added
176
177 * The non-deprecated versions of noexcept are supported. #273
178
179 * Most of the subobject production that clang uses is supported. #273
180
181 ## Changed
182
183 * Rust 2018 is now used. #251
184
185 * cppfilt now uses clap 4.0. #271
186
187 ## Fixed
188
189 * no_std works. #251
190
191 * Inheriting constructors no longer produce substitutable values. #272
192
193 --------------------------------------------------------------------------------
194
195 # 0.3.5
196
197 Released 2021/12/02
198
199 ## Changed
200
201 * The LLVM mangling for vector types with a dimension expression is now
202 supported. The libiberty mangling which appears to be unused by gcc has
203 been removed.
204
205 --------------------------------------------------------------------------------
206
207 # 0.3.4
208
209 Released 2021/11/21
210
211 ## Added
212
213 * `DemangleOptions` now has a `hide_expression_literal_types` method that
214 can make it easier to match user-provided template instance names. #230
215
216 --------------------------------------------------------------------------------
217
218 # 0.3.3
219
220 Released 2021/7/8
221
222 ## Added
223
224 * The builtin `char8_t` type is now recognized #224
225
226 ## Changed
227
228 * `glob` is no longer a build time dependency #220
229
230 --------------------------------------------------------------------------------
231
232 # 0.3.2
233
234 Released 2020/11/27
235
236 ## Added
237
238 * `ParseOptions` is introduced, with new API variants `Symbol::new_with_options`
239 and `Symbol::with_tail_and_options`. The existing APIs use the default parsing
240 options.
241 * Recursion limits are now configurable via `ParseOptions` and `DemangleOptions`.
242 * Transaction clone symbols are supported #217
243
244 ## Changed
245
246 * The default parsing recursion limit is now 96 (up from 64). The value was
247 chosen to avoid pathological symbols overflowing the stack of a debug build.
248 Users may be able to safely raise the limits substantially depending on their
249 expected workload and tolerance for crashes.
250
251 --------------------------------------------------------------------------------
252
253 # 0.3.1
254
255 Released 2020/10/09
256
257 ## Added
258
259 * Java Resource symbols are now supported #200
260
261 ## Fixed
262
263 * C++ reference collapsing rules are honored.
264 * Misc style fixes.
265
266 ## Changed
267
268 * DemangleOptions is now repr(C)
269
270 --------------------------------------------------------------------------------
271
272 # 0.3.0
273
274 Released 2020/06/11
275
276 ## Changed
277
278 * The DemangleOptions API has changed to be more future-proof and the
279 DemangleNodeType enum now has an __NonExhaustive variant to discourage
280 pattern matching without a `_ => ()` arm.
281
282 --------------------------------------------------------------------------------
283
284 # 0.2.17
285
286 Released 2020/06/09
287
288 ## Added
289
290 * Return types can now be elided from demangled symbols via
291 DemangleOptions::no_return_typ. #202
292
293 * A vtable marker is now emitted for semantic consumers.
294
295 --------------------------------------------------------------------------------
296
297 # 0.2.16
298
299 Released 2020/05/13
300
301 ## Added
302
303 * Block invocation symbols. #197
304
305 * The spaceship operator <=>. #198
306
307 --------------------------------------------------------------------------------
308
309 # 0.2.15
310
311 Released 2020/04/24
312
313 ## Added
314
315 * A C API to cpp_demangle is now available. #191
316
317 * Additional AST markers are emitted for semantic consumers. #189
318
319 ## Fixed
320
321 * Multiple clone suffixes are now supported. #194
322
323 --------------------------------------------------------------------------------
324
325 # 0.2.14
326
327 Released 2019/11/15
328
329 ## Fixed
330
331 * Certain symbols can have cyclic back references, or at least very deep stacks
332 of back references. Many of those symbols are valid! But as a practical
333 implementation to avoid stack overflows and infinite loops, we now place a
334 limit on the depth of back references we will follow. This is similar to the
335 parse limit that we already had, but for a different phase of the
336 demangling. [#186](https://github.com/gimli-rs/cpp_demangle/pull/186)
337
338 --------------------------------------------------------------------------------
339
340 # 0.2.13
341
342 Released 2019/07/30
343
344 ## Fixed
345
346 * Fix parsing of outdated `sr` forms that prevented parsing other symbols. See
347 #173 for details.
348
349 * Ensures a space is printed before a `&` or `&&` reference qualifier. #176
350
351 * Fixed placement of parentheses in symbols with function pointer arguments that
352 have `const` qualifiers. #175
353
354 --------------------------------------------------------------------------------
355
356 # 0.2.12
357
358 Released 2018/08/09
359
360 ## Fixed
361
362 * *Actually* fixed builds using `no-default-features = true` to not accidentally
363 enable `no_std` mode, which requires nightly rust, and break builds on
364 non-nightly channels. Enabling the `no_std` mode now requires disabling the
365 `std` feature *and* enabling the `alloc` feature.
366
367 --------------------------------------------------------------------------------
368
369 # 0.2.11
370
371 Released 2018/08/09
372
373 ## Fixed
374
375 * Fixed builds using `no-default-features = true` to not accidentally enable
376 `no_std` mode, which requires nightly rust, and break builds on non-nightly
377 channels. Enabling the `no_std` mode now requires disabling the `std` feature
378 *and* enabling the `alloc` feature.
379
380 --------------------------------------------------------------------------------
381
382 # 0.2.10
383
384 Released 2018/08/08
385
386 ## Added
387
388 * Added support for `no_std`! This currently requires nightly Rust's `alloc`
389 feature to get access to `BTreeMap`. Enable `no_std` support by building
390 without the on-by-default `std` feature. [#148][]
391
392 ## Fixed
393
394 * Fixed formatting of some conversion operators. [#149][]
395 * Fixed parsing some tricky symbols with template argument packs that came out
396 of boost. [#150][] [#152][]
397
398 [#148]: https://github.com/gimli-rs/cpp_demangle/pull/148
399 [#149]: https://github.com/gimli-rs/cpp_demangle/pull/149
400 [#150]: https://github.com/gimli-rs/cpp_demangle/pull/150
401 [#152]: https://github.com/gimli-rs/cpp_demangle/pull/152
402
403 --------------------------------------------------------------------------------
404
405 # 0.2.9
406
407 Released 2018/05/14
408
409 ## Fixed
410
411 * Fixed a few issues with parentheticals.
412 * Should not force recompilation via build.rs for every compile anymore (bug
413 introduced in 0.2.8 when trying to make the package that is distributed on
414 crates.io smaller).
415
416 --------------------------------------------------------------------------------
417
418 # 0.2.8
419
420 Released 2018/05/11
421
422 Bug fixes, more `libiberty` tests passing, and we can now parse and demangle all
423 but one symbol from Firefox's `libxul`:
424
425 ```
426 Total number of libxul symbols: 274346
427 Number of libxul symbols parsed: 274345 (100.00%)
428 Number of libxul symbols demangled: 274345 (100.00%)
429 Number of libxul symbols demangled same as libiberty: 227259 (82.84%)
430 ```
431
432 ## Fixed
433
434 * AFL.rs fuzzing integration is fixed for the new AFL.rs releases.
435 * Fixed formatting of constructors and destructors.
436 * Fixed parsing of the `<function-param>` production.
437 * Fixed parsing of call expression productions.
438 * Parsing an operator's operands will only parse as many operands as the
439 operator's arity, instead of as many as it can.
440
441 --------------------------------------------------------------------------------
442
443 # 0.2.7
444
445 Released 2017/11/27
446
447 Making lots of progress on symbols found in the wild! Here are our stats for
448 symbols from Firefox's `libxul`:
449
450 ```
451 Total number of libxul symbols: 274346
452 Number of libxul symbols parsed: 274319 (99.99%)
453 Number of libxul symbols demangled: 274319 (99.99%)
454 Number of libxul symbols demangled same as libiberty: 199928 (72.88%)
455 ```
456
457 Additionally, the `libiberty` test threshold bumped up from 70 to 83 during this
458 release.
459
460 ## Added
461
462 * Added support for GCC's "global constructors" and "global destructors"
463 extensions.
464 * Added support for GCC's extensions to the `<special-name>` production:
465 construction vtables, typeinfo functions, TLS initialization functions, TLS
466 wrapper functions.
467 * Added support for the now-defunct `<local-source-name>` production. My
468 understanding is that this is from an older version of the ABI standard. It
469 isn't in the current version, but all the other demanglers support it, so we
470 will too.
471
472 ## Changed
473
474 * `cpp_demangle` is now part of the `gimli-rs` GitHub organization. The
475 canonical repository is now https://github.com/gimli-rs/cpp_demangle
476 * Literals are now formatted how `libiberty` formats them. For example,
477 `foo<true>()` rather than `foo<1>()`.
478 * Unary operators are now formatted with parentheses, matching `libiberty`.
479
480 ## Fixed
481
482 * Nested array types and multi-dimensional arrays are now mangled correctly.
483 * Nested function types and their qualifiers are now mangled correctly.
484 * Arrays of function types and function types with array return and parameter
485 types are now mangled correctly.
486 * The `new` operator is now correctly formatted as `operator new` rather than
487 `operatornew`. Same for the `delete` operator.
488
489 --------------------------------------------------------------------------------
490
491 # 0.2.6
492
493 Released 2017/11/08
494
495 ## Added
496
497 * Added support for vector types
498 * Added support for ABI tags
499 * Added support for `<unqualified-name> ::= <closure-type-name>` productions
500
501 ## Fixed
502
503 * Fixed erroneous insertions into the substitutions table with prefixes and
504 nested names
505 * Well known components were previously incorrectly not permitted to prefix
506 template arguments