开发者

How to add Doxygen Comments for "C" variables with long type names

I have a code

   static const guint8 variable;

when I put a documentation

/**
 * \var static const guint8 variable;
 * \brief This is a v开发者_运维知识库ariable
 */
static const guint8 variable;

I do not get any output in the generated documentation. However, when the same thing is done with a simple variable decleration:

/**
 * \var int someothervar;
 * \brief This is some other variable
 */
int variable;

it does work

is that I am making some mistake in the usage ?

Thanks for any help in advance,

- elechi


For extracting static variables you should set EXTRACT_STATIC to YES.

If the documentation is in front of the variable, you do not need (and should not use) \var

Either set EXTRACT_ALL to YES or add a comment with a @file command in your code to document the file itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜