Add ddoc style comments to all diagnostic functions.#7812
Add ddoc style comments to all diagnostic functions.#7812dlang-bot merged 1 commit intodlang:masterfrom
Conversation
|
Thanks for your pull request, @ibuclaw! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
| * Params: | ||
| * loc = location of error | ||
| * format = printf-style format specification | ||
| */ |
There was a problem hiding this comment.
Not that I would care much about (and it makes sense in DMD's ugly codebase), but as an FYI we recently defined documentation strings in the DStyle.
|
|
||
| // header is "Error: " by default (see errors.h) | ||
| /** | ||
| * Same as $(D error), but takes a va_list parameter, and optionally additional message prefixes. |
There was a problem hiding this comment.
FYI: Phobos is slowly converted to use backticks instead of $(D ...)
There was a problem hiding this comment.
Would you prefer that changed?
There was a problem hiding this comment.
It was just an FYI. I have given up hope for a pretty DMD codebase long ago.
wilzbach
left a comment
There was a problem hiding this comment.
Doc improvements are always welcome!
|
Per https://dlang.org/dstyle.html#phobos_documentation
But I don't think that should hold up this PR. |
Yes, it was just an FYI as it was added four days ago and I assume it's not very known: dlang/dlang.org#2129 Anyhow the DDoc failures are a holdup: |
I did have a quick look in phobos/druntime, and I couldn't see any existing documentation for ellipses. Blindly trying |
|
I'm not convinced that adding a documented |
|
I restarted Jenkins |
| * Print additional details about a warning message. | ||
| * Doesn't increase the error count or print an additional warning prefix. | ||
| * Params: | ||
| * Params: |
src/dmd/errors.d
Outdated
| } | ||
|
|
||
| /** | ||
| * Print additional details about an error mesage. |
|
@WalterBright - I ran the source through aspell and picked up a couple of other spelling mistakes. |
|
Yep, although the compiler complains if Or recognising it. |
| /** | ||
| * Embed these highlighting commands in the text stream. | ||
| * HIGHLIGHT.Escape indicats a Color follows. | ||
| * HIGHLIGHT.Escape indicates a Color follows. |
There was a problem hiding this comment.
Backticks around HIGHLIGHT.Escape.
| import dmd.root.rmem; | ||
| import dmd.console; | ||
|
|
||
| /********************** |
There was a problem hiding this comment.
It's not really necessary to do this. The number of *'s is not consistent anywhere in the source code, and it hardly matters.
Ah I've just realised that this is a ddox bug. The ddoc page is fine. :-) |
Mostly mechanical / repetitive comments.