c - 强制 doxygen 模块以小写字母开头

标签 c doxygen

我正在使用 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/

相关文章:

api - 是否可以将 Google Analytics 添加到 doxygen 生成的文件中?

c - 为什么我无法显示正确的列表值?

c - 绕过C错误生成clang调试信息

c - strtok 究竟是如何工作的?

php - Doxygen 忽略@method

css - 无法覆盖 Doxygen 中的搜索框 css 规则

c++ - 如何在 Doxygen 代码示例中插入多行注释

c - 如何以编程方式确定 Windows 是否正在关闭?

c++ - 我应该在使用 dlopen() 之前先执行 malloc() 吗?

c++ - Doxygen:如何记录没有#defined 的宏?