Doxygen无法用于C结构的正向声明

时间:2018-11-27 13:05:00

标签: c doxygen

我在C头文件中有以下代码:

/** \brief Forward declaration for instance object. */
typedef struct CbData_t CbData;

/**
 * \brief Callback function prototype.
 *
 * \param cbData  [OUT] Callback Data. Refer #CbData
 * \return None.
 */
typedef void (*cbFxn)(CbData cbData);

/**
 * \brief Structure containing callback data.
 */
struct CbData_t
{
    uint32_t id;
    /**< Id for which interrupt has occurred */
};

当我尝试创建doxygen(1.8.13版)时,出现以下错误:

warning: explicit link request to 'CbData' could not be resolved

如何解决此错误?

0 个答案:

没有答案