Closed gunslingerfry closed 5 years ago
I don't see how to make it fully work either. I would have expected Doxygen to be able to find the class when expanding macros.
If you find a way to fix/work around this, please post here, and I'll add it to the Better Enums documentation.
I have the same issue; Strict corporate coding standards.
The best workaround I've found, which is admittedly ugly, is to #define it and document it as a class. Example:
/**
* @class enum_Trick
* @param Card A card trick
* @param Hat A hat trick
*/
#define enum_Trick BETTER_ENUM
enum_Trick( Trick, int,
Card,
Hat
);
The drawbacks:
@param[in] trick @ref enum_Trick
not
@param[in] trick @ref Trick
.I'm not sure there can BE a solution without defining some construct within Doxygen (project configuration?) to look for.
A shame - I really like BETTER_ENUM.
I want to use this library but it is important that the enums are documentable.
I can document the macro invocation, and even fake parameter values
but these are not searchable.
I've tried to document the class that is generated under the hood
but doxygen, expanding macros, cannot find either the class or the enum.
Any suggestions on how to proceed or am I SOL?