Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > header file dependency map

Reply
Thread Tools

header file dependency map

 
 
Dr Evil
Guest
Posts: n/a
 
      08-19-2004
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?
 
Reply With Quote
 
 
 
 
Ali Cehreli
Guest
Posts: n/a
 
      08-19-2004
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
 
Reply With Quote
 
 
 
 
Pete Chapman
Guest
Posts: n/a
 
      08-20-2004
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)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find ruby header file without platform dependency. Jun Young Kim Ruby 2 11-13-2009 06:49 AM
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Cyclic header dependency pallav C++ 1 04-13-2007 06:37 AM
Questions regarding cyclic header dependency fc2004@gmail.com C Programming 3 04-22-2006 07:06 AM
How to remove dependency on a header file which has a typedef? Vikas C++ 1 08-01-2003 08:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57