Doxygen:如果文件成员位于已分组的文件中,它们可以继承模块分组吗? [英] Doxygen: Can file members inherit a module grouping if they are in a file that is grouped?

查看:69
本文介绍了Doxygen:如果文件成员位于已分组的文件中,它们可以继承模块分组吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个文件somefile.c。在此文件的顶部,我有

Lets assume I have a file, somefile.c. At the top of this file I have

/*!
* \file somefile.c
* \ingroup some_group
*
* \defgroup some_group Some Awesome Group
* \brief Module's description
* bla bla bla
*/

在此文件的主体中,我有些武断函数,类型定义,变量,结构等的数量。现在,我必须仔细检查一下每一项中的分组。在大多数情况下,我都按文件对模块进行分组(我相信世界其他地方也可以这样做)。我有一些模块具有多个标头和c文件,并且在其中进行了分组。

Within the body of this file I have some arbitrary number of functions, typedefs, variables, structs, etc. Right now I am having to go through and put a \ingroup in the documentation block for every single one of these. For the most part I group my modules by file (which I am sure the rest of the world does too). I have a few modules that have multiple headers and c files, and in those I do subgrouping.

是否可以通过配置doxygen来假设我想要每个文件成员继承文件所在的模块分组?

Is there a way to configure doxygen to assume that I want every file member to inherit the module grouping of the file it is in?

推荐答案

可以通过使用命令\addtogroup获得所需的功能。结合\ {和\}

The required functionality can be obtained by using the command \addtogroup in combination with \{ and \}

这篇关于Doxygen:如果文件成员位于已分组的文件中,它们可以继承模块分组吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆