【发布时间】:2012-10-24 11:39:51
【问题描述】:
我注意到,当默认构造函数不带参数时,Doxygen 可以链接来自实例的成员函数调用,但在构造函数带参数时无法链接它们。
- 这是为什么呢?
- 是否有在
@code/@endcode块中手动添加链接的解决方法?
在下面的例子中:
-
t.foo()-foo()已链接 -
u.foo()-foo()未链接
.
/** @file doxy.cpp */
/** struct T */
struct T {
/** foo */
void foo() { }
};
/** struct U */
struct U {
int a; /**< int a */
/** U */
U(int a_) : a(a_) { }
/** foo */
void foo() { }
};
/**
* main
*
* @code
* T t;
* t.foo(); // foo is linked
*
* U u(42);
* u.foo(); // foo is not linked
* @endcode
*/
int main()
{
return 0;
}
【问题讨论】: