[cxx-abi-dev] __cxa_demangle of type manglings

Jason Merrill jason at redhat.com
Wed Jan 12 05:47:08 UTC 2005


On Tue, 11 Jan 2005 20:34:08 -0800 (PST), Dennis Handly <dhandly at cup.hp.com> wrote:

>>Yes, but which?  Type or non-mangled name?  That's the ambiguity, and I
>>think the user should be able to control how it is resolved.
>
> It should alway do the type.  If you don't want the type, don't call
> __cxa_demangle because it won't do anything anyway, if it followed
> the current ABI exactly.

Ah, you're saying that any user can prefilter names by checking for _Z and
not passing in other names.  Yes, that works, though I'd prefer not to
require users to have that kind of detailed knowledge of the mangling
scheme.

Jason



More information about the cxx-abi-dev mailing list