头文件中没有定义的Doxygen C结构声明

头文件中没有定义的Doxygen C结构声明,c,doxygen,C,Doxygen,在Doxygen中是否可以添加已声明但未定义的结构的简要描述?例如,在文件为mydefinition.h #ifndef MYDEFINITION_H_ #define MYDEFINITION_H_ /** My super secret structure you can't access fields */ struct MyStructure; /** The function that lets you use any instance of 'struct MyStructure

在Doxygen中是否可以添加已声明但未定义的结构的简要描述?例如,在文件为
mydefinition.h

#ifndef MYDEFINITION_H_
#define MYDEFINITION_H_

/** My super secret structure you can't access fields */
struct MyStructure;

/** The function that lets you use any instance of 'struct MyStructure'
 * @param msobj the object
 */
void functionUsingMyStructure(struct MyStructure* msobj);
将生成函数的文档,但不生成结构的文档


我试图通过设置
OPTIMIZE\u OUTPUT\u FOR\u C=YES
来修改Doxygen的配置文件,但这并没有改变这种情况。

Doxygen忽略结构的正向声明。为了解决这个问题,您必须明确声明给定的注释块描述了您的结构

/** @struct MyStructure
 * My super secret structure you can't access fields
 */
struct MyStructure;

Doxygen忽略结构的正向声明。为了解决这个问题,您必须明确声明给定的注释块描述了您的结构

/** @struct MyStructure
 * My super secret structure you can't access fields
 */
struct MyStructure;

可能您需要\cond之类的东西,不知道它是否已解决,但我认为搜索的comand是\struct(而不是\cond)可能您需要\cond之类的东西,不知道它是否已解决,但我认为搜索的comand是\struct(而不是\cond)