我正在使用 doxygen 记录一个 C 项目,并将文件集合分组到模块中(其中每个模块包含一个 c 样式类的所有文档)。我拥有的一切都工作正常,除了所有模块名称都以大写字母开头,即使我创建的模块组名称全部为小写。
例如,以下 doxygen 注释将在我的文档中生成一个模块“Foobar”,即使我添加到组“foobar”并希望该模块被称为“foobar”:
/**
*@addtogroup foobar
*@{
* (some documentation elements...)
*@}
*/
虽然大写不会以任何严重的方式影响文档,但我想修复它以保持一致性(并且因为我不能让自己放弃它)。 Google 干涸了,有什么建议吗?
最佳答案
我差点错过了 doxygen manual :
To define a group, you should put the \defgroup command in a special comment block. The first argument of the command is a label that should uniquely identify the group. The second argument is the name or title of the group as it should appear in the documentation.
所以你应该能够做到
@addtogroup foobar foobar
关于c - 强制 doxygen 模块以小写字母开头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17182949/