有没有一种方法可以从 C++ 代码生成分层类图。我的代码分布在 5 到 6 个 .cpp 文件中。
我想知道是否有相同的免费工具。
问候, 阿杰
最佳答案
例如氧气
http://www.doxygen.nl/manual/features.html说:
Uses the dot tool of the Graphviz tool kit to generate include dependency graphs, collaboration diagrams, call graphs, directory structure graphs, and graphical class hierarchy graphs.
它创建的图形如下
(来自 http://www.vtk.org/doc/nightly/html/structvtkKdTree_1_1__cellList.html,doxygen 网站上列出的示例)
由于问题是关于类图的,您可能还对 UML_LOOK 感兴趣使输出更像 uml 的标志。
关于C++代码到类图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2591025/