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
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top