www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Ddoc and struct members

reply n00nb <cloch bobmail.info> writes:
Hi all!

How do I generate documentation for struct members using ddoc?

I don't understand if there is a way to generate documentation 
for all the members without putting a '///' over every member
Dec 13 2017
parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 14/12/2017 3:16 AM, n00nb wrote:
 Hi all!
 
 How do I generate documentation for struct members using ddoc?
 
 I don't understand if there is a way to generate documentation for all 
 the members without putting a '///' over every member
There isn't.
Dec 13 2017
parent Bastiaan Veelo <Bastiaan Veelo.net> writes:
On Thursday, 14 December 2017 at 03:17:10 UTC, rikki cattermole 
wrote:
 On 14/12/2017 3:16 AM, n00nb wrote:
 I don't understand if there is a way to generate documentation 
 for all the members without putting a '///' over every member
There isn't.
It doesn’t need to take any vertical space though: “If the documentation comment appears on the same line to the right of a declaration, it applies to that.“ [1] [1] https://dlang.org/spec/ddoc.html
Dec 14 2017