C ++代码可视化 [英] C++ code visualization
问题描述
这是这个的后续/相关问题。
A sort of follow up/related question to this.
我试图抓住一个大的代码库,它有数百个类和一个大的继承层次结构。我想能够看到继承层次结构的主静脉 - 不是所有的外围类只做一些非常具体/专门的事情。 Visual Studio的视图类图使得看起来像一列火车,它的水平横跨屏幕,并不是很有组织。
I'm trying to get a grip on a large code base that has hundreds and hundreds of classes and a large inheritance hierarchy. I want to be able to see the "main veins" of the inheritance hierarchy at a glance - not all the "peripheral" classes that only do some very specific / specialized thing. Visual Studio's "View Class Diagram" makes something that looks like a train and its sprawled horizontally across the screen and isn't very organized. You can't grok it easily.
我刚刚试过doxygen和graphviz,但结果是有点类似于Visual Studio。
I've just tried doxygen and graphviz but the results are .. somewhat similar to Visual Studio. I'm getting sweet looking call graphs but again too much detail for what I'm trying to get.
我需要一个快速的方法
推荐答案
为什么不是手动创建,这是一个伟大的学习经验,当开始使用一个大的代码库。我通常只是看看什么类继承什么,什么类包含什么实例,引用或指向其他类的指针。有一张纸在你旁边,并得到绘图...
Why not just do it manually, it is a great learning experience when starting to work with a large code base. I usually just look at what class inherits from what, and what class contain what instances, references or pointers to other classes. Have a piece of paper next to you and get drawing...
这篇关于C ++代码可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!