c - Doxygen document possible parameter values -
currently c-code function declaration documented follows
/** fubar function *@param[in] val1 first input variable *@param[in] val2 second input variable */ void foo (int val1, int val2);
but parameters can except numbers within range, e.g., 0-500
is possible document other part of parameter description? maybe shows separately in produced documentation?
e.g. in latex-produced pdf table produced cell parameter type (int) direction (in) , name (var1/var2). there way of having table cell 0-500?
your best bet may table in detail section. doxygen supports html commands inside documentation, , table generated in pdf looks decent.
/** * @brief fubar function * @param[in] val1 first input variable * @param[in] val2 second input variable * * <table> * <tr><td>type</td><td>direction</td><td>name</td><td>value range</td></tr> * <tr><td>int</td><td>in</td><td>val1</td><td>0-500</td></tr> * <tr><td>int</td><td>in</td><td>val2</td><td>1-1000</td></tr> * </table> */ void foo(int val1, int val2) {}
the issue looks redundant me. perhaps limiting table parameter name , expected value better.
see doxygen manual: html commands set of html supported doxygen.
Comments
Post a Comment