Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 05, 2014 dependency graph | ||||
---|---|---|---|---|
| ||||
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? |
July 06, 2014 Re: dependency graph | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vlad Levenfeld | 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?
|
July 06, 2014 Re: dependency graph | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vlad Levenfeld | 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 |
July 07, 2014 Re: dependency graph | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rene Zwanenburg | Thanks! Between the -deps flag and duml I think this is exactly what I need. |
Copyright © 1999-2021 by the D Language Foundation