Bug 526184 - Use the Itanium ABI mangling scheme to get a more compact string representation of types
Summary: Use the Itanium ABI mangling scheme to get a more compact string representati...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-17 23:41 EDT by Nathan Ridge CLA
Modified: 2020-09-04 15:18 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2017-10-17 23:41:57 EDT
CDT's current method for representing types as strings is quite inefficient. In bug 519121, for example, we were getting OOM errors due to building type-strings that were over 30 million characters long. The fix applied there is more of a workaround; it would be good to have a more systematic solution.

One idea that has been suggested is to adopt the Itanium ABI's name mangling scheme to generate string representations of types.
Comment 1 Nathan Ridge CLA 2017-10-17 23:42:59 EDT
(In reply to Nathan Ridge from comment #0)
> One idea that has been suggested is to adopt the Itanium ABI's name mangling
> scheme to generate string representations of types.

Documentation for this mangling scheme can be found here: http://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling