This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: example of killer doxygen formatting
- To: libstdc++ <libstdc++ at sourceware dot cygnus dot com>
- Subject: Re: example of killer doxygen formatting
- From: Richard Andrews <richarda at ixla dot com dot au>
- Date: Wed, 25 Apr 2001 16:15:04 +1000
>> Do we want to use the Qt style or the JavaDoc style?
>
> Personally, I'd rather use triple-slashes (ie, one-line javadoc style)
Personally I like the JavaDoc comments better.
Beyond personal choice, which version is more widely accepted? Doxygen is
killer, but it won't necessarily always be the best system and we should
consider that people may want to use other doc generators.
Another related question: do we use \ or @ for structured tags, and do we
use the structured tags at all?
Eg.
/** @brief This is a groovy function.
*
* @param p1 This is the grooviest parameter.
*/
or
/** \brief This is a groovy function.
*
* \param p1 This is the grooviest parameter.
*/
You can certainly do a lot for the formatting of the doc by making use of
@param, @return, @pre, @post, @sa etc. as well as just adding descriptions.