[libcxx-commits] [libcxxabi] [llvm] [llvm-cxxfilt] Added the option --no-params (PR #75348)
James Henderson via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 19 01:48:37 PST 2023
================
@@ -5430,6 +5430,13 @@ Node *AbstractManglingParser<Derived, Alloc>::parseEncoding() {
if (IsEndOfEncoding())
return Name;
+ // ParseParams may be false in top-level only, when called from parse().
+ if (!ParseParams) {
+ while (consume())
+ ;
----------------
jh7370 wrote:
I believe that this will consume any dot suffix too, e.g. the ".123" part of `_Z3foov.123` which is a "vendor specific suffix according to the Itanium spec. I expected c++filt to not skip it when `--no-params` is specified, but apparently it does (and therefore this matches llvm-cxxfilt's behaviour). I'm in two minds as to whether that's a bug or by design. Someone might want to reach out to the GNU mailing list to find out one way or another.
Either way, it probably deserves a test case.
https://github.com/llvm/llvm-project/pull/75348
More information about the libcxx-commits
mailing list