Bug 32936 - [meta] C++ name canonicalizer
Summary: [meta] C++ name canonicalizer
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 16929 28952 32937 32938 32940 8617 32939
Blocks:
  Show dependency treegraph
 
Reported: 2025-05-03 22:59 UTC by Tom Tromey
Modified: 2025-05-03 23:42 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2025-05-03 22:59:58 UTC
This is a meta-bug to collect all the known problems in
the C++ name canonicalizer.
Comment 1 Tom Tromey 2025-05-03 23:42:00 UTC
I wonder if it's possible to make the name canonicalizer
a lot simpler -- that is, instead of attempting a real parse,
just lex the name and do some simple transforms: remove or
add whitespace as desired, and canonicalize the order of
strings of keywords (like "unsigned int short" or whatever).

This might be difficult though.  The canonicalizer is also
used to strip function parameters for lookup_name_info.
And it has some "resolve typedefs" functionality... I don't
recall exactly what that's used for but it may be a
pain to replicate in a dumbed-down rewrite.