使用 Doxygen 链接到 ivars 或方法

发布于 2024-12-12 18:03:13 字数 259 浏览 2 评论 0原文

我尝试按照 Doxygen 文档添加指向 ivars 和方法的链接,但 Doxygen 无法解释它们。

这就是我正在做的事情。

@interface MyClass: NSObject
{
  int x;
}
@end

Somewhere else:
/**
Trying to link to x.
MyClass::x
*/

解决方案:不会创建指向未记录内容的链接。刚刚将文档添加到我的 ivar 并创建了链接。

I tried following the Doxygen documentation to add links to ivars and methods but none of them are interpreted by Doxygen.

This is what I'm doing.

@interface MyClass: NSObject
{
  int x;
}
@end

Somewhere else:
/**
Trying to link to x.
MyClass::x
*/

SOLUTION: No link is created to something that is not documented. Just added documentation to my ivar and the link was created.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏见 2024-12-19 18:03:13

请尝试以下操作:

/** Class documentation. */
@interface MyClass: NSObject
{
    /** This documentation is for x. */
    int x;
}
@end


/** @page mypage A page
    This is a \ref MyClass::x "link" to x.
    This also links to x: MyClass::x.
 */

Try the following:

/** Class documentation. */
@interface MyClass: NSObject
{
    /** This documentation is for x. */
    int x;
}
@end


/** @page mypage A page
    This is a \ref MyClass::x "link" to x.
    This also links to x: MyClass::x.
 */
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文