I have a doxygen header for a function as follows:
/** Some description.
@param[in] grid1 First grid
@param[in] grid2 Second grid
@pre grid1 and grid2 must be of the same dimensions
*/
I’d like grid1 and grid2 to be specially highlighted in the pre-conditions section of the generated documentations, since they are parameters. In my mind, I should be able to do something like
@pre #grid1 and #grid2 must be the same size
But this doesn’t work.
Any thoughts on how to achieve this?
It would be nice if
#automatically linked to the function argument definition. However, I can’t see anyway of doing this in the automatic link generation section of the doxygen manual.Having looked at the documentation HTML source it seems that parameters seem to be simply styled as
strongand with the classparamname. So something likeshould give you the results you want. Clearly this is overly verbose to write out each time. However, you should be able to define a custom command, say
\paramname, to do this so you could just writeEdit: This can be achieved with the configuration file alias