Doxygen无法记录函数定义,后跟.cpp中的某些代码 [英] Doxygen unable to document for functions definition followed by some code in .cpp like

查看:227
本文介绍了Doxygen无法记录函数定义,后跟.cpp中的某些代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Doxygen无法为.cpp中的函数记录,如
Hello All,
我有一个.cpp文件,发现doxygen无法记录包含以下格式的函数:

Doxygen unable to document for functions in .cpp like Hello All, I have a .cpp file and found that doxygen is unable to document function which contains the following format:

//!
//! \brief Test
//!        and perform operations on those points.
//!
void CTest::TestTri()
EH_Start("CTest::TestTri")
{
}
EH_Stop

EH_Start和EH_Stop是异常处理机制并导致问题。
我们如何排除这些?
等待提前积极回覆。

The EH_Start and EH_Stop are exception handling mechanisem and causing issues. How can we exclude those? Awaiting for an early positive reply.

推荐答案

尝试使用更明确的doxygen格式 - 以下告诉doxygen您想要记录的功能,所以它不必须了解您的代码,以确定将文档附加到哪些内容:

Try using a more explicit doxygen format - the following tells doxygen exactly which function you wish to document, so it doesn't have to understand your code to work out what to attach the documentation to:

/// \fn void CTest::TestTri()
/// \brief Test and perform operations on those points
EH_STart("CTest::TestTri") {} EH_Stop

这篇关于Doxygen无法记录函数定义,后跟.cpp中的某些代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆