【发布时间】:2013-06-25 16:58:04
【问题描述】:
我正在使用 doxygen 来评论一个纯 C 项目。结构的文档格式如下:
/** @struct cl_options
* @brief This structure contains all ...
* @var cl_options::input_file
* Member 'input_file' contains ...
* @var cl_options::output_file
* Member 'output_file' contains ...
* @var cl_options::bitrate_mode
* ...
*/
struct cl_options {
FILE* input_file;
FILE* output_file;
....
};
尽管如此,我还是收到了警告:
.../commandline.c:39: Warning: Member input_file (variable) of class cl_options is not documented.
.../commandline.c:40: Warning: Member output_file (variable) of class cl_options is not documented.
等等。对于项目中的所有结构。
头文件commandline.h中有一个decleration
struct cl_options;
typedef struct cl_options cl_options;
但 doxygen 在.c-文件中。
现在生成的 doxygen 在数据结构部分有一个结构的链接,但没有记录。相反,有一个链接显示
此结构的文档是从以下内容生成的 文件:命令行.c
然后是我在.c-文件中提供的文档。我怎样才能避免这种情况?
【问题讨论】: