c++ - Doxygen 将实例化误解为成员
问题描述
我正在使用 Doxygen 编写源代码文档。
我发现 Doxygen 在以下代码中解释:
#include <QPoint>
namespace space {
//! first common length
const quint16 val1 = 10;
//! second common length
const quint16 val2 = 10;
//! a point
const QPoint myPoint(val1, val2);
}
myPoint
作为成员方法并警告:
header.h:30: warning: return type of member space::myPoint is not documented
header.h:30: warning: parameters of member space::myPoint are not (all) documented
但是myPoint
是常量属性而不是方法。我认为这一行确实与方法声明具有相同的语法。所以这种误解是可以预料的。
有没有办法强制 Doxygen 将此行解释为特定类型?
解决方案
推荐阅读
- gcc - 为 Cascade-Lake 处理器编译时,GCC 包含 AVX512 的“Fused Multiply Add”指令
- swiftui - 如何为不同环境的 SwiftUI App 生命周期应用程序运行 UI 测试?
- java - 读取我的公钥和私钥文件时遇到问题
- google-apps-script - 使用 Google Apps 脚本从 Google 幻灯片创建 mp4
- pytorch - Torchvision 转换规范化值选择
- cordova - 使用 Cordova 检测设备是否可以访问华为应用程序库
- python - 当写“\n”时,为什么要替换两个字符?
- c++ - C++ 中 char 数组的初始化是如何工作的?
- java - 如何从表中选择行?
- visual-studio - DocFX 为不同文件夹中的项目生成文档