Doxygen: Can file members inherit a module grouping if they are in a file that is grouped?

StackOverflow https://stackoverflow.com/questions/22414328

  •  14-06-2023
  •  | 
  •  

Question

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
*/

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.

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top