The documentation of structs/unions declared inside another struct/union is not kept close to the documentation of the parent.
Author: parmi93Created Jul 29, 2025Updated Sep 12, 2026
LabelsenhancementC/C++
/**
* @brief My struct.
*/
typedef struct
{
/**
* @brief My union
*/
union
{
long int integer; ///< Integer
bool boolean; ///< Boolean
} value;
int type; ///< Type
} my_struct1_t;
/**
* @brief My struct 2
*/
typedef struct
{
char *name; ///< name
} my_struct2_t;
/**
* @brief My struct 3
*/
typedef struct
{
int foo; ///< foo
} my_struct3_t;I think it would make more sense if the documentation for my_struct1_t.value was placed right after the documentation for my_struct1_t
Source: doxygen/doxygen