Let's say I have this struct type:
typedef struct Hidden Hidden;
struct Hidden
{
int foo;
int bar;
};
and then I have a global variable
Hidden visible;
Hidden
should never be used and visible
should be the only declaration of type Hidden
. I don't want to generate documentation for Hidden
as I don't want it to be used, but instead generate documentation for visible
with all the information about it and about its fields.
The closest thing I've found is that when you document a struct
with no tag like:
struct
{
int foo; ///< Number of particals in the universe.
int bar; ///< Number of socks in the drawer.
} Baz; ///< Nameless struct variable.
Doxygen will generate
struct {
int foo
Number of particals in the universe.
int bar
Number of socks in the drawer.
} Baz
Nameless struct variable.
This is the sort of thing I'm trying to achieve, but I can't use nameless structs.
Is such thing possible?