Bug 11050 – DDoc should provide file and line information

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-16T03:19:18Z
Last change time
2024-12-13T18:11:30Z
Keywords
ddoc
Assigned to
No Owner
Creator
Andrei Alexandrescu
Moved to GitHub: dmd#18671 →

Comments

Comment #0 by andrei — 2013-09-16T03:19:18Z
For each symbol described by ddoc, file and line information should be available. The file is global to the document so one DDOC_FILENAME macro definition should be provided. The path is relative. The line is per-symbol and should be provided as input to a macro DDOC_DECL_LINE. That macro has two arguments, the symbol introduced and its line. By default DDOC_DECL_LINE = $1 meaning the line is ignored (for backward compatibility). For example, if a symbol foobar is being introduced at line 359, ddoc will expand DDOC_DECL(DDOC_DECL_LINE(foobar, 359)) which with the default definition will expand to $(DT $(BIG foobar))
Comment #1 by robert.schadek — 2024-12-13T18:11:30Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18671 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB