将静态变量的初始值的 doxygen 复制到 \file 块
我试图将静态变量的初始值的 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 但它似乎只复制静态变量上方的注释,而不是初始值。请注意,初始值正确显示在变量的文档中。
有什么建议吗?
谢谢。
I am trying to copy the doxygen of the initial value of a static variable to the top of my code in the \file block. That is, in 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 would want the "Usage" string to appear in the main file documentation. As you can see I tried \copydoc but it only seems to copy the comment above the static variable, not the initial value. Note that the initial value appears properly in the variable's documentation.
Any suggestions?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你的 doxyfile 中的 MAX_INITIALIZER_LINES 配置要么是 0,要么太小。只需给它一个合理的值即可。
Sounds like your MAX_INITIALIZER_LINES config in your doxyfile is either 0 or too small. Just give it a sensible value.