Doxygen ///在行尾注释

Dea*_*ith 6 documentation doxygen objective-c

当我评论cvars时,我倾向于使用以下格式,因为我认为它更容易阅读.

UILabel *titleLabel; // The title label in the view
Run Code Online (Sandbox Code Playgroud)

我现在的客户端使用doxygen,所以我要回去把我的评论转换成doxygen格式,我希望这样就像

UILabel *titleLabel; /// The title label in the view
Run Code Online (Sandbox Code Playgroud)

不幸的是,这导致评论被附加到下一个cvar.

有没有办法告诉doxygen单行注释应该属于他们所在行的cvar?

小智 15

我想你错过了<,尝试使用:

UILabel *titleLabel; ///< The title label in the view
Run Code Online (Sandbox Code Playgroud)

有关更多信息,请参阅doxygen手册.