静态函数的语法是什么?
我正在用 doxygen 记录代码 C,但是这个函数不能
/**
* @fn void myApp_StartReporting( void )
*
* @brief bla bla....
*
* @see myAccReportPeriod
*
* @return none
*/
static void myApp_StartReporting( void );
。如果删除静态,则文档就可以了。
非常感谢。
I'm documenting code C with doxygen but this function can´t
/**
* @fn void myApp_StartReporting( void )
*
* @brief bla bla....
*
* @see myAccReportPeriod
*
* @return none
*/
static void myApp_StartReporting( void );
If remove static the documentation is ok.
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,doxygen 会跳过静态函数。您是否在 Doxyfile 中设置了
EXTRACT_STATIC = YES
选项?还有一个风格注释(这是我对问题的第一个猜测):
如果文档块紧邻其描述的实体之前,则不需要
@fn
标记。By default doxygen skips static functions. Did you set the
EXTRACT_STATIC = YES
option in your Doxyfile?Also a style note (which was my first guess on what's wrong):
If the documentation block is placed immediately before the entity that it describes the
@fn
tag is not needed.