Class dependency graph with doxygen

≡放荡痞女 提交于 2019-12-07 06:31:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!