从 C++ 源创建类图?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/704738/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 16:51:02  来源:igfitidea点击:

Create class diagram from c++ source?

c++class-design

提问by yesraaj

Is there any free tools available for generating class diagram from c++ source files and if possible for mfc source files too.

是否有任何免费工具可用于从 c++ 源文件生成类图,如果可能的话,也可以用于 mfc 源文件。

回答by fa.

We use doxygenwith graphvizsupport

我们使用带有graphviz支持的doxygen

回答by Dan Breslau

You could try SourceNavigator. I'm not sure what the current state of the project is, but here's a place to start.

你可以试试 SourceNavigator。我不确定项目的当前状态,但这里有一个开始的地方

回答by Void

I've had some success with Umbrello(a KDE-based app). It allows you to import code to create a model, that can then be used to generate UML diagrams.

我在使用Umbrello(一个基于 KDE 的应用程序)方面取得了一些成功。它允许您导入代码以创建模型,然后可以使用该代码生成 UML 图。

回答by Gunee

Umbrello is probably fine for projects with a limited number of classes, and certainly requires manual intervention for tuning. I imagine doxygen/graphviz is more suitable for larger projects.

Umbrello 可能适用于类数量有限的项目,当然需要手动干预进行调整。我想 doxygen/graphviz 更适合大型项目。