Bug 5335 – DDoc ignores documentation comment that begins on the same line as the open curly brace

Status
NEW
Severity
trivial
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-12-09T07:42:55Z
Last change time
2024-12-13T17:54:32Z
Keywords
ddoc
Assigned to
No Owner
Creator
Michal Minich
Moved to GitHub: dmd#17521 →

Comments

Comment #0 by michal.minich — 2010-12-09T07:42:55Z
DMD 2.050 Only in C5 is member 'a' documented /// class C1 {/// int a; } /// class C2 {/// int a; } /// class C3 {/** */ int a; } /// class C4 { /** */ int a; } /// class C5 { /// int a; }
Comment #1 by smjg — 2012-03-11T10:08:08Z
It's actually the documentation comment it ignores, not the member. So if a member's documentation is split across multiple single-line comments, it will use all except the one that is on the same line as the {. Try this at home: /// class C1 {/// abc /// def int a; } /// class C2 {/** abc def */ int a; } generated documentation: class C1; int a; def class C2;
Comment #2 by robert.schadek — 2024-12-13T17:54:32Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17521 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB