By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,171 Members | 1,037 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,171 IT Pros & Developers. It's quick & easy.

header file dependency map

P: n/a
Greetings. Has anyone ever seen a tool that will read directories of
header file source code and generate a dependency tree? I've often
encountered large projects where such a tool would be useful. I've
used reverse engineering tools such as Rational Rose C++ Analyzer, but
that's a class perspective / module perspective. Perhaps there's a
way to use Rose Analyzer to generate such a dependency map but I'll be
DARNED! if I'll figure it out. :) I suppose it wouldn't be hard to
write, right? :)
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 19 Aug 2004 10:18:10 -0700, Dr Evil wrote:
Greetings. Has anyone ever seen a tool that will read directories of
header file source code and generate a dependency tree?


Doxygen can do this.

Ali
Jul 22 '05 #2

P: n/a
Dr Evil wrote:
Greetings. Has anyone ever seen a tool that will read directories of
header file source code and generate a dependency tree? I've often
encountered large projects where such a tool would be useful.


The -M and -MM options of gcc/g++ do this . It'd be a right pain writing
makefile rules without it.

(To be more precise, it generates dependencies starting from c & cpp
files, not 'bare' headers. If this difference is important to you, you
could create a set of trivial cpp files that #include each header one at
a time)
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.