Copy the doxygen source value of the static variable to \ file block

I am trying to copy the doxygen initial value of a static variable to the beginning of my code in the \ file block. That is, something like this:

#include <iostream> /*! \file Test.cxx * This is my program. * \copydetails HelpText */ /*! \var * This is my static string. */ static std::string HelpText = "Calculate the average magnitude of the vectors in a vector image.\n\n\ Usage:\n\ -in InputVectorImageFileName\n"; int main() { return 0; } 

I want the "Usage" line to appear in the main documentation of the file. As you can see, I tried \ copydoc, but it looks like the copy of the comment is above the static variable, not the initial value. Note that the original value is displayed in the variable documentation.

Any suggestions?

Thanks.

+7
source share
1 answer

It looks like your MAX_INITIALIZER_LINES config in your doxyfile is 0 or too small. Just give it a reasonable value.

0
source

All Articles