Doxygen: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== Reference == * https://www.stack.nl/~dimitri/doxygen/manual/ == Tips == === Link to Main Page === Use <code>/ref index</code> [https://www.stack.nl/~dimitri/doxygen/manual...")
 
Line 1: Line 1:
== Reference ==
== Reference ==
* https://www.stack.nl/~dimitri/doxygen/manual/
* https://www.stack.nl/~dimitri/doxygen/manual/

== Reference ==
=== One-liner ===

Documentation block are usually added before the item to document.
Use <code>/** ... */</code> or <code>///</code>:
<source lang="c">
/** Brief description which ends at this dot. Details follow
* here.
*/
uint8_t my_int;

/// Brief description which ends at this dot. Details follow
/// here.
uint8_t my_other_int;
</source>

Documentation can also be added after members.

<source lang="c">
int var; /*!< Detailed description after the member */

int var; /**< Detailed description after the member */

int var; //!< Detailed description after the member
//!<

int var; ///< Detailed description after the member
///<
</source>

Most often one only wants to put a brief description after a member. This is done as follows:

<source lang="c">
int var; //!< Brief description after the member

int var; ///< Brief description after the member
</source>


== Tips ==
== Tips ==

Revision as of 06:16, 5 December 2017

Reference

Reference

One-liner

Documentation block are usually added before the item to document. Use /** ... */ or ///:

/** Brief description which ends at this dot. Details follow
 *  here.
 */
uint8_t my_int;

/// Brief description which ends at this dot. Details follow
/// here.
uint8_t my_other_int;

Documentation can also be added after members.

int var; /*!< Detailed description after the member */ 

int var; /**< Detailed description after the member */

int var; //!< Detailed description after the member
         //!< 

int var; ///< Detailed description after the member
         ///<

Most often one only wants to put a brief description after a member. This is done as follows:

int var; //!< Brief description after the member

int var; ///< Brief description after the member

Tips

Link to Main Page

Use /ref index [1]:

/**
 * See \ref index.
 */