Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate collaboration diagrams for structures with simple type members

Tags:

doxygen

I have a C project that I document with doxygen. I also use graphviz to generate collaboration diagrams for my structures. The problem is that for structures, which their members are simple types (int, float, etc) or their members are defined outside the project (and included via an include file) no collaboration diagram is generated.

How can I force doxygen to generate a diagram for those structures?

For example, say I have the following structure:

/** This is my simple struct. */
typedef struct 
{
    /** A member */
    int a_member;

    /** Another member */
    int another_member;
} my_simple_struct_t;

If you have a struct like this, Doxygen will not generate a collaboration diagram (it will provide a documentation entry for the struct though). How can I force it to create one and show that it is a structure of two integers?

like image 757
Kostas Avatar asked Mar 22 '12 13:03

Kostas


1 Answers

With the following settings doxygen will produce a collaboration diagram for the above structure:

HAVE_DOT             = YES
COLLABORATION_GRAPH  = YES
HIDE_UNDOC_RELATIONS = NO
like image 66
doxygen Avatar answered Sep 22 '22 06:09

doxygen