链接到不同命名空间中具有相同名称的函数

时间:2021-03-01 08:59:30

标签: doxygen

我在不同的命名空间中有两个同名的函数:

xt::xtensor<double, 2> GMatTensor::Cartesian2d::I4d();

template <class T>
void GMatTensor::Cartesian2d::pointer::I4d(T* A);

GMatTensor::Cartesian2d::pointer::I4d 的文档中,我想链接到 GMatTensor::Cartesian2d::I4d。但是我该怎么做

我在 GMatTensor::Cartesian2d::pointer::I4d 的文档字符串中尝试过:

  • I4d()
  • Cartesiand2d::I4d()
  • GMatTensor::Cartesiand2d::I4d()

在每种情况下都会产生一个链接,但总是指向 GMatTensor::Cartesian2d::pointer::I4d 而不是指向预期的 GMatTensor::Cartesian2d::I4d


最小可重现示例:

/**
\file mylib.h
*/

namespace GMatTensor {
namespace Cartesian2d {

/**
Lorem ipsum.

\return [2, 2, 2, 2] array.
*/
inline xt::xtensor<double, 4> I4d();

namespace pointer {

    /**
    See Cartesian2d::I4d()

    \param ret output 2nd order tensor
    */
    template <class T>
    inline void I4d(T* ret);

} // namespace pointer
} // namespace Cartesian2d
} // namespace GMatTensor

带有Doxyfile

IMPUT = .

(我用 doxygen 1.9.1 运行)


编辑我提交了错误报告:https://github.com/doxygen/doxygen/issues/8403

0 个答案:

没有答案