Add Ddoc headers for front-end modules#10903
Conversation
|
Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. 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. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#10903" |
|
I would just remove the boilerplate. Especially with the way you put it, it's part of the "Specification" section, not the description. |
Geod24
left a comment
There was a problem hiding this comment.
Included few comments (didn't finish my review).
In general:
- Get rid of the boilerplate
- Make sure you have an empty line between the title and the description.
- Make sure the descriptions comes directly after the title, not after a section.
src/dmd/arrayop.d
Outdated
| @@ -1,4 +1,8 @@ | |||
| /** | |||
| * Implement array opterations, such as `a[] = b[] + c[]`. | |||
src/dmd/ast_node.d
Outdated
| @@ -1,4 +1,6 @@ | |||
| /** | |||
| * Defines an abstract ASTNode class. | |||
There was a problem hiding this comment.
| * Defines an abstract ASTNode class. | |
| * Defines the base class for all nodes which are part of the AST. |
src/dmd/astbase.d
Outdated
| module dmd.astbase; | ||
|
|
||
| /** | ||
| */ |
src/dmd/attrib.d
Outdated
| @@ -1,4 +1,17 @@ | |||
| /** | |||
| * Defines declarations of various 'attributes'. | |||
| * The term attribute is used very loosly, since it includes: | |||
There was a problem hiding this comment.
Put an empty line (well, with a *) between line 2 and 3 to make this part of the description.
Also I wouldn't say it is not used loosely, just that your expectation of what an attribute is might differ.
It has more to do with things applying to a larger scope than a single declaration, I'd say.
src/dmd/builtin.d
Outdated
| @@ -1,4 +1,7 @@ | |||
| /** | |||
| * Evaluate certain external functions for CTFE. | |||
There was a problem hiding this comment.
| * Evaluate certain external functions for CTFE. | |
| * Implement CTFE for intrinsic (builtin) functions |
Also the empty line to separate title from description.
You might want to link / read https://en.wikipedia.org/wiki/Intrinsic_function
src/dmd/cli.d
Outdated
| * Compiler implementation of the | ||
| * $(LINK2 http://www.dlang.org, D programming language). | ||
| * | ||
| * This modules defines the help texts for the CLI options offered by DMD. |
There was a problem hiding this comment.
Newline after this to make the title short.
src/dmd/dmangle.d
Outdated
| @@ -1,4 +1,9 @@ | |||
| /** | |||
| * Does name mangling for D symbols, which generates a unique name for a linker symbol based | |||
There was a problem hiding this comment.
Too long, and inconsistent with the cppmangle side which does not explain what mangling is.
But really, I would expect anyone working on a compiler to know that. We can still add a See_Also to wikipedia if you feel like it, but we shouldn't paraphrase it.
src/dmd/attrib.d
Outdated
| * The term attribute is used very loosly, since it includes: | ||
| * Defines declarations of various attributes. | ||
| * | ||
| * The term 'attribute' refers to things that apply to a larger scope than a single declaration. |
There was a problem hiding this comment.
| * The term 'attribute' refers to things that apply to a larger scope than a single declaration. | |
| * The term 'attribute' refers to things that can apply to a larger scope than a single declaration. |
E.g. depending on how you declare it, you might have deprecated as an attribute which is a parent of Dsymbols, or directly as part of the Dsymbol's storage classes.
src/dmd/dmangle.d
Outdated
| /** | ||
| * Does name mangling for D symbols, which generates a unique name for a linker symbol based | ||
| * on the namespace, identifier and type. | ||
| * Does name mangling for D symbols. |
There was a problem hiding this comment.
| * Does name mangling for D symbols. | |
| * Does name mangling for `extern(D)` symbols. |
Do you mean this text:
Or the other links as well? Except for 'Authors', all default sections could be auto-generated, but I do think Walter likes to have them in the source file. |
5ae2f8f to
5a26eae
Compare
Yep just this. The rest is fine. |
d5d7d93 to
5a26eae
Compare
9f4d4e3 to
07af28f
Compare
As suggested by Walter: #9844 (comment)
The descriptions are sometimes vague since I'm not always sure myself what each module does exactly, but it's a start.