Doxygen ///在行尾注释

问题描述 投票:4回答:1

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

UILabel *titleLabel; // The title label in the view

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

UILabel *titleLabel; /// The title label in the view

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

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

objective-c documentation doxygen
1个回答
14
投票

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

UILabel *titleLabel; ///< The title label in the view

有关更多信息,请参阅doxygen manual

© www.soinside.com 2019 - 2024. All rights reserved.