www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dependency graph

reply "Vlad Levenfeld" <vlevenfeld gmail.com> writes:
A colleague of mine had asked me if I could produce some kind of 
object/module dependency type of graph for a D project I've got. 
I'm not sure what these are called but I've seen them before for 
inheritance hierarchies in C++ projects. (I don't tend to use 
inheritance so I suspect something exactly like this would not be 
terribly helpful in my case but some kind of general layout of 
symbol dependencies would be).

Is there any utility out there for building a visual 
representation of my project?
Jul 05 2014
next sibling parent Philippe Sigaud via Digitalmars-d-learn writes:
If you compile your project with the -deps flag, the compiler will
output import dependencies. With -deps=filename, the output will go
into filename.

From there, you'll have to parse and create the graph, though. Maybe
have a look into rdmd source, to see how the dependency extraction is done there?
Jul 06 2014
prev sibling parent reply "Rene Zwanenburg" <renezwanenburg gmail.com> writes:
On Saturday, 5 July 2014 at 15:33:51 UTC, Vlad Levenfeld wrote:
 A colleague of mine had asked me if I could produce some kind 
 of object/module dependency type of graph for a D project I've 
 got. I'm not sure what these are called but I've seen them 
 before for inheritance hierarchies in C++ projects. (I don't 
 tend to use inheritance so I suspect something exactly like 
 this would not be terribly helpful in my case but some kind of 
 general layout of symbol dependencies would be).

 Is there any utility out there for building a visual 
 representation of my project?
This may be what you're looking for: http://code.dlang.org/packages/duml
Jul 06 2014
parent "Vlad Levenfeld" <vlevenfeld gmail.com> writes:
Thanks! Between the -deps flag and duml I think this is exactly 
what I need.
Jul 07 2014