开发者

Doxygen /// comments at end of line

开发者 https://www.devze.com 2023-01-30 12:06 出处:网络
When I\'m commenting cvars I have a tendency to use the following format as I think it\'s easier to read.

When I'm commenting cvars I have a tendency to use the following format as I think it's easier to read.

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

My current client uses doxygen and so I'm going back 开发者_Python百科and converting my comments into doxygen format, which I hoped would be as simple as

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

Unfortunately this results in the comment being attached to the next cvar.

Is there any way of telling doxygen that single line comments should belong to the cvar on the line they are on ?


I think you are missing a <, try using:

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

See the doxygen manual for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消