静态函数的语法是什么?

发布于 2024-12-17 02:29:56 字数 280 浏览 1 评论 0原文

我正在用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与风相奔跑 2024-12-24 02:29:56

默认情况下,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文