氧混淆了函数文档和内部类文档
Doxygen confused between documentation of function and inner class
氧1.8.10
在类中,我有一个函数,其中声明了一个内部类。
/*! This is a test class
*/
class TestClass {
/*! brief A function which does something
* param param_A this is the first parameter of doSomething function
* param param_B this is the second parameter of doSomething function
*/
void doSomething(int param_A, int param_B) {
/*! This is an inner Test Class
*/
class InnerTestClass {
/*! brief A constructor for InnerTestClass
* param param_C this is the parameter for the InnerTestClass inner class constructor
*/
InnerTestClass (int param_C) {
}
}
当我为上面的类生成氧文档时,在函数doSomething和内部类InnerTestClass的文档之间发生了混淆。
- 没有创建名为classInnerTestClass.html的内部类文档文件。
在classstestclass .html的文档中,InnerTestClass的文档包含在函数的文档中,如下所示:
doSomething (int param_Aint param_B)
做某事的函数
参数param_A这是doSomething函数的第一个参数param_B这是doSomething函数的第二个参数
这是一个内部测试类
参数param_C这是InnerTestClass内部类构造函数的参数
- 显示警告消息,指示param_A和param_B没有记录,并且在doSomething的参数列表中没有找到param_C。
在函数/方法内部定义的结构/类被认为是实现细节,不能被记录(就像你不能记录单个for循环或if语句一样)。
把氧看作是记录公共 API的工具。如果你还想显示实现,用正常的注释记录它,并在配置文件中将INLINE_SOURCES
设置为YES
。
相关文章:
- 正在查找文档以获得PS4平台的C++中的设备信息
- 如何在文档文件夹中创建目录
- 当Microsoft文档仅包含 C# 示例时,如何查找 C++ 包含文件名
- 通过构造函数创建一些值并尝试添加到文档中使用 rapidjson 不起作用
- 关于类的 Python 文档 - 对C++的引用不正确
- C++/autoconf 等效于文档库要求.txt的要求是什么?
- mbed:使用 USB 文档库编译会导致错误
- 在设计 SDK 时,我是否应该在 C++ 头文件中完全隐藏内部类?
- C++ VISUAL STUDIO:GLFWwindow没有初始化,即使它是在文档中编写的并且以前工作过
- 如何声明由多个线程调用的 C++ DLL 的内部类,而无需导出类
- 使用 yaml-cpp 更新 YAML 文档的节点和值
- 从内部类继承
- 在加载 MSHTML 文档之前从 MSHTML 文档中删除无效的 URL
- 如何在C++中表示JSON文档的递归对象结构?
- 如何将枚举类转发声明为模板化类的内部类?
- 从内部类中的方法从包含类调用方法
- 文档使用QaxWidget在QT内完成信号
- 可视化C++代码文档:doxygen vs 内置于 VC++ 编译器中
- 氧混淆了函数文档和内部类文档
- 有没有一种方法可以查看C++中的内置文档