Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDOC_CONSTRAINT macro not applied to constraints that aren't on functions #17824

Open
dlangBugzillaToGithub opened this issue Dec 14, 2017 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Jonathan M Davis (@jmdavis) reported this on 2017-12-14T00:58:50Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=18075

Description

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants