Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seeking tool to graphically show (header) file dependancies in C/C++ [closed]

Tags:

c++

c

I know that header guards avoid (most) trouble; call me @n@l if you like, but I just don't like a sloppy header-file tree.

If I draw on paper a box for each header file and connect them by lines representing #include, I like to see a neat hierarchy. But what I usually see is a complex web.

Maybe I am @n@l, but to me that tangled web represents sloppy-thinking and I would like to induce order by reorganizing the #include hierarchy.

Does anyone know of a tool which will let me vizualize the #include hierarchy? Preferably a free tool.

(and, yes, I know that I "could probably do it with graphviz dot", but that is not an answer ;-)

like image 819
Mawg says reinstate Monica Avatar asked Jan 31 '10 07:01

Mawg says reinstate Monica


2 Answers

Doxygen can do this for you if you use it along with the dot tool.

Here is an example: http://www.neuraladvance.com/json-c/html/json_8h.html

like image 175
Cromulent Avatar answered Nov 15 '22 19:11

Cromulent


You could try cinclude2dot

like image 4
Hasturkun Avatar answered Nov 15 '22 18:11

Hasturkun