Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I specify a description for an \xrefitem in Doxygen?

Tags:

doxygen

I am using the \xrefitem command to create a bunch of user-defined sections that are all automatically cross-referenced. For example, one of the aliases I use looks like this:

hack=\xrefitem hack \"Hack\" \"Wall of Shame\""

This all works well. The documentation is generated exactly as I want, and a link to the "Wall of Shame" appears on the "Related Pages" page:

    "Related Pages" page, with "Wall of Shame" link. Note the empty description field.

But I can't figure out how to add a description to the right of this link. That empty description cell there is just begging to be filled. How can I make it happy?

Although the documentation doesn't indicate that this is valid syntax, I tried appending a description to the end of the alias, like this:

hack=\xrefitem hack \"Hack\" \"Wall of Shame\" \"Some sample descriptive text\""

but it didn't work; it just broke everything else.

like image 375
Cody Gray Avatar asked Aug 06 '13 12:08

Cody Gray


People also ask

How do I show code in doxygen?

You can put example source code in a special path defined in the doxygen config under EXAMPLE_PATH , and then insert examples with the @example tag. Doxygen will then generate an extra page containing the source of the example. It will also set a link to it from the class documentation containing the example tag.

What is a doxygen tag?

Doxytag is a small command line based utility. It can generate tag files. These tag files can be used with doxygen to generate references to external documentation (i.e. documentation not contained in the input files that are used by doxygen).

Are doxygen commands case sensitive?

It is parsed by doxygen . The file may contain tabs and newlines for formatting purposes. The statements in the file are case-sensitive. Comments may be placed anywhere within the file (except within quotes). Comments begin with the # character and end at the end of the line.


1 Answers

You can do

/*! @page hack 
 *  @brief Some sample descriptive text.
 *  @par
 */

Note that the dummy @par shouldn't have been needed, but it is currently needed due to a logic bug in doxygen, which I'll fix in the next release.

like image 199
doxygen Avatar answered Oct 11 '22 12:10

doxygen