I am trying to use Doxygen to document the functions of some option-controlling macros symbols, for example:
//! \def BOOST_SOMEFEATURE
/*! \brief Option macro that is not normally defined
* but can optionally be defined by consumers to activate the option.
*/
But this will NOT be indexed and the comment will be ignored because the macro isn't defined.
A Doxygen macro symbol entry will only be produced in the documentation when there is a #define
like
#define BOOST_SOMEFEATURE
in the header and other files.
Can I force documentation of the macro symbol other than by nasty fudges like
#undef BOOST_SOMEFEATURE
or perhaps including a dummy .cpp file that contains #define
s for all the macro symbols that control options?
#define BOOST_SOMEFEATURE
#define BOOST_SOMEOTHERFEATURE
...