Code: Select all
class Test
{
public:
enum fruit { pear, orange };
/*! Another enum, with inline docs */
enum veggies
{
celery, /*!< docs for value one */
carrot /*!< docs for value two */
};
};
/*! \class Test
* The class description.
*/
/*! \enum Test::fruit
* A description of the fruit enum.
*/
/*! \var Test::fruit Test::pear
* The description of the first fruit.
*/
Code: Select all
enum fruit { pear, orange };
/*! \var Test::otherFruit Test::pear
* The description of the first otherFruit.
*/
Trying:
Code: Select all
/*! \var Test::otherFruit Test::otherFruit::pear
Is it possible to document enum classes this way?Warning: documentation found, for a class member which was not found:
Test::otherfruit Test::otherFruit::pear
There is a workaround: document the enum values inline. However, this is not mentioned in the \enum documentation. In fact, documenting enum class does not appear to be mentioned anywhere in the DoxyPress documentation.