Bug 4817 – CodeView: Enum members should have simple names

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-09-05T00:51:00Z
Last change time
2015-06-09T05:14:53Z
Keywords
patch
Assigned to
nobody
Creator
aldonunez1

Attachments

IDFilenameSummaryContent-TypeSize
9544817.txtUse toChars instead of toPrettyChars.text/plain1154

Comments

Comment #0 by aldonunez1 — 2010-09-05T00:51:40Z
In the CodeView info for a program, members of enums have their names stored fully qualified, even though the enum members themselves are stored in the scope of their enum type, whose name is already fully qualified. Instead of storing: LF_ENUM "mod.E" - LF_ENUMERATE "mod.E.Alpha" - LF_ENUMERATE "mod.E.Beta" This should be stored: LF_ENUM "mod.E" - LF_ENUMERATE "Alpha" - LF_ENUMERATE "Beta" This is helpful for debugging.
Comment #1 by aldonunez1 — 2011-04-28T01:18:42Z
Created attachment 954 Use toChars instead of toPrettyChars. We can fix this by using toChars instead of toPrettyChars when writing LF_ENUMERATE records in cv4_Denum.
Comment #2 by bugzilla — 2011-04-28T11:28:20Z