0
votes

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.

1
Shouldn't you be using @interface instead of @class? - doxygen
Sorry, the post has been corrected. It was a mistake writing the code. I cannot live without autocorrection! - David Casillas

1 Answers

1
votes

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.
 */