首页 > 解决方案 > 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 将此行解释为特定类型?

标签: c++doxygen

解决方案


推荐阅读