#11684·doxygen

在另一个结构/联合内声明的结构/联合的文档不保持与父结构/联合的文档相近。

作者: parmi93创建于 2025年7月29日更新于 2026年9月12日
标签enhancementC/C++
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;

内容来源: doxygen/doxygen