【发布时间】:2022-11-27 23:08:13
【问题描述】:
这里有两种对实体进行评论的方式(例如,在类似 C/C++ 的语言中)。
款式一:
// This is a comment
// about foo
int foo;
// This is a comment
// about bar
int bar;
样式 2:
int foo;
// This is a comment
// about foo
int bar;
// This is a comment
// about bar
我知道,通常,在编写 doxygen 注释时,它通常出现在记录的实体之前,例如:
/// This is a doxygen comment
/// about foo
int foo;
/// This is a doxygen comment
/// about bar
int bar;
情况总是如此,还是我可以将它放在实体之后,就像上面的第二种评论风格一样?
【问题讨论】:
标签: c++ comments doxygen cross-language