Bug 18075 – DDOC_CONSTRAINT macro not applied to constraints that aren't on functions

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

Comments

Comment #0 by issues.dlang — 2017-12-14T00:58:50Z
For whatever reason, dmd currently fails to apply the DDOC_CONSTRAINT macro to any template constraint that is not on a function (or at least, I haven't found anything yet that it gets properly applied to that isn't a function). I found this out when trying to properly format the html generated by ddoc for my own code, but it's easily demonstrated by looking at dlang.org: Function: https://dlang.org/phobos/std_array.html#appender Struct: https://dlang.org/phobos/std_array.html#Appender Template: https://dlang.org/phobos/std_algorithm_iteration.html#map Notice that in the case of appender, the template constraint is indented on the line after the function and is in light grey (and apparently, mousing over it turns it black). However, in the case of Appender and map, the template constraint is on the same line as the struct or template and has the same color and formatting as the rest of the declaration (aside from the symbol name, which is in bold).
Comment #1 by robert.schadek — 2024-12-13T18:55:29Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17824 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB