我应该如何使用 Doxygen 对 typedef 进行分类?
我的 C++ 代码中有 typedef 结构。截至目前,它们被列为 \var
typedef。有更好的方法吗?下面是我所拥有的示例:
/*! \var typedef etc
* \brief A type defined structure for etc
*
* \param x type- Variable declaration for x
* \param y type- Variable declaration for y
*/
我知道我什至不应该说 param
。还有什么可以用的?
I have typedef structs in my C++ code. As of right now they are listed as \var
typedef. Is there a better way to do this? Below is example of what I have:
/*! \var typedef etc
* \brief A type defined structure for etc
*
* \param x type- Variable declaration for x
* \param y type- Variable declaration for y
*/
I know I shouldn't even be saying param
. What else is there to use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 Doxygen 文档 有一个
\typedef
命令。该命令的行为与\var
命令相同。According to the Doxygen documentation there is a
\typedef
command. The command behaves the same as the\var
command.如果将注释块放在 typedef 前面,则不需要使用任何特殊命令。
如果您喜欢将其放在 typedef 之后,请使用以下命令:
仅当注释块必须位于与实际 typedef 不同的位置时,您才需要使用 \typedef。
If you put the comment block in front of the typedef you don't need to use any special command.
If you prefer to put it after the typedef use the following:
Only when the comment block must be at a different location than the actual typedef, you need to use \typedef.