4817 – CodeView: Enum members should have simple names

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4817 - CodeView: Enum members should have simple names
Summary: CodeView: Enum members should have simple names
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P3 normal
Assignee: No Owner
URL:
Keywords: patch
Depends on:
Blocks:
Reported: 2010年09月05日 00:51 UTC by Aldo Nunez
Modified: 2015年06月09日 05:14 UTC (History)
1 user (show)

See Also:


Attachments
Use toChars instead of toPrettyChars. (1.13 KB, patch)
2011年04月28日 01:18 UTC, Aldo Nunez
Details | Diff
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Aldo Nunez 2010年09月05日 00:51:40 UTC
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 Aldo Nunez 2011年04月28日 01:18:42 UTC
Created attachment 954 [details] 
Use toChars instead of toPrettyChars.
We can fix this by using toChars instead of toPrettyChars when writing LF_ENUMERATE records in cv4_Denum.


AltStyle によって変換されたページ (->オリジナル) /