Am 25.08.2015 um 18:36 schrieb Bostjan Mihoric:
[...]
> /// @file
>
> /// My typedef.
> typedef void VOID;
>
> /// My simple function. Details.
> extern VOID Function(VOID);
>
> Note that I have enabled OPTIMIZE_OUTPUT_FOR_C, JAVADOC_AUTOBRIEF and
> enabled all warnings.
>
> The first thing is that Doxygen will generate doc for this function,
> but emit no warnings and also not create a link with details (whole
> line is read as brief). The problem goes away when there are at least
> two lines beginning with ///. I noticed documentation states that I
> need to make at least two lines in case of single-line comments. My
> question is: why? Is there a special reason for it?

Yes, there is. From the docs (emphasis mine):

"For the BRIEF description there are also several possibilities:
[...]
3. A third option is to use a special C++ style comment which DOES NOT
span more than one line. [...]"

In other words, single-line C++ style comments are reserved for
autobrief comments that do _not_ stop at the first dot-whitespace
sequence as Javadoc-autobrief comments do.

(My personal preference would be for the entire first _paragraph_ to
always be considered a brief description, but alas, that's not supported.)

------------------------------------------------------------------------------
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to