问题
I want to generate a class dependency graph for a large project in C++. I'm trying to do it with doxygen. Here is the sample code:
class Used {
public:
void bar();
};
class Base { };
class Derived : public Base {
public:
void foo(Used*); // Dependency on class Used
};
Here is the collaboration diagram generated by doxygen:
Nice, but Derived depends on Used through the method foo, and I want to see this on the diagram, like this:
Unfortunately, doxygen generates such dependency only if Used is aggregated with Derived (used as a class member). Is there a way to show other kinds of dependencies between classes?
Or maybe someone can suggest a different tool to generate such a dependency graph?
I tried to use CppDepend, it does exactly what I want, but unfortunately it currently has some issues with dependencies in a really big project (though the dev team is open for communication and has already fixed a couple of bugs I reported).
来源:https://stackoverflow.com/questions/23992759/class-dependency-graph-with-doxygen