Bug 18074 – Struct members missing from docs when the struct has a ditto ddoc comment

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-14T00:43:08Z
Last change time
2024-12-13T18:55:28Z
Keywords
ddoc
Assigned to
No Owner
Creator
Jonathan M Davis
Moved to GitHub: dmd#19346 →

Comments

Comment #0 by issues.dlang — 2017-12-14T00:43:08Z
If ddoc is generated for this code: ================ /// Something about foo. auto foo() { return 42; } /// Ditto struct Foo { /// Something about bar. auto bar() { return "str"; } } ================ then the documentation for the function foo and the struct Foo is shown, correctly merged together. However, the documentation for Foo.bar does not show up. In contrast, if the struct is documented first, and ditto is used on the fnuction, then all of the struct's members show up correctly in the documentation. So, something about documenting a struct with ditto makes it so that none of its members show up in the documentation.
Comment #1 by robert.schadek — 2024-12-13T18:55:28Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19346 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB