我试图将静态变量的初始值的 doxygen 复制到\file 块中我的代码的顶部。也就是说,在这样的事情中:
#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;
}
我希望“用法”字符串出现在主文件文档中。如您所见,我尝试了\copydoc,但它似乎只复制了静态变量上方的注释,而不是初始值。请注意,初始值正确出现在变量的文档中。
有什么建议?
谢谢。
最佳答案
听起来像你的 MAX_INITIALIZER_LINES doxyfile 中的 config 为 0 或太小。只要给它一个合理的值(value)。
关于variables - 将静态变量的初始值的 doxygen 复制到\file block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5862104/