Following examples in the doxygen manual, I constructed the test header test.h:
/**
* @file test.h
*/
/** @brief This is a struct
* @var foo A foo.
* @var bar Also a Foo.
* @var baz (unused field)
*/
typedef struct {
int foo;
int bar;
char *baz;
} whatsit;
When I use the default Doxyfile (generated with 'doxygen -g'), I see the warnings:
...test.h:11: warning: Compound whatsit is not documented
...test.h:7: warning: documented symbol `foo A Foo` was not defined
...test.h:12: warning: Member foo (variable) of class whatsit is not documented
What gives? I am under the impression from the manual that you don't need tags like @struct when the comment directly precedes the definition, and also that it is legitimate to document the member vars in the block above, and not on the same lines they are declared with /*< ... syntax. (I definitely hate the latter style...)
How can I get this to recognize the comment properly?