Is there a tool or way to get the data struct relation by statically/
dynamically traversing the C code.
struct a {
struct b *sa;
struct c *sb;
int ia, ib;
};
struct b {
int ic;
struct d *sc;
};
struct d {
int id;
struct b *se;
};
struct c {
int ie;
};
for the above, i need to get a graph as follows
--------------------
| |
struct a | |
|-> sa ---------> struct b |
| |-------> struct d --|
|
|-> sb ---------> struct c;
There are UML tools out there that can build class diagrams out of C/C++ source
files. See column "Reverse engineered languages" at
http://en.wikipedia.org/wiki/List_of_UML_tools
--
Max