digitalmars.D.learn - dependency graph
- Vlad Levenfeld (9/9) Jul 05 2014 A colleague of mine had asked me if I could produce some kind of
- Philippe Sigaud via Digitalmars-d-learn (5/6) Jul 06 2014 If you compile your project with the -deps flag, the compiler will
- Rene Zwanenburg (3/12) Jul 06 2014 This may be what you're looking for:
- Vlad Levenfeld (2/2) Jul 07 2014 Thanks! Between the -deps flag and duml I think this is exactly
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
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. Maybehave a look into rdmd source, to see how the dependency extraction is done there?
Jul 06 2014
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
Thanks! Between the -deps flag and duml I think this is exactly what I need.
Jul 07 2014