c++ - Doxygen Doesn't expand macros -
this seems trivial task , yet not able doxygen expand macro. i've used version 1.6.3, 1.7.4, 1.7.6 , 1.8.6. i've done plenty of searches on google, still failed miserably.
i've got c++ file contains following lines (copied off doxygen documentation):
#define const_string const char * static const_string version = "2.xx";
i've followed documentation , set:
enable_preprocessing = yes macro_expansion = yes
then added following:
expand_only_predef = yes expand_as_defined = const_string
then
skip_function_macros = yes (previously no)
all got code generation was:
1 #define const_string const char * 2 static const_string version = "2.xx";
what have done wrong? advice appreciated.
what makes think have done wrong?
you should seeing version
in "variables" section of documentation page source file. if you've enabled source code output, variable version
should hyperlink variable documentation.
your documentation better if preface definition of variable doxygen comment. continuing example,
//! define constant string type. //! @deprecated use typedef const_string_t instead. #define const_string const char * //! software version number static const_string version = "2.xx";
Comments
Post a Comment