Bug 14689 – dmd should optionally generate #line directives in the .di file

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-12T05:01:07Z
Last change time
2022-10-10T05:32:57Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Blocks
14680

Comments

Comment #0 by andrei — 2015-06-12T05:01:07Z
When generating .di file it's useful to benefit from backreferences to the source code (fully commented, with unittests nearby, source available etc).
Comment #1 by razvan.nitu1305 — 2022-10-10T05:32:57Z
I don't think .di files are meant for that purpose. Header files should generally be used by the compiler to speed up the build process. As a consequence I don't see any reason why comments or line directives should be included. Even if we were to implement this enhancement request, we would probably need to another cli switch (like -Hv) and in my opinion that is not worth it. Another reason to close this is the fact that nobody else has requested this feature in the last 7 years. I am going to close this as WONTFIX, however, feel free to reopen if you disagree with my assessment.