逆向工程C ++的工具(即查看C ++类) [英] Tools to reverse engineer C++ ( i.e. to view C++ classes )
问题描述
我有一个大型的手写的C ++源代码(即WebKit和其他开源)。
I have a large body of hand-written C++ source (i.e. WebKit and other open source).
我想要一个工具,它将:
I want a tool which will:
- 让我看看每个类和任何类的类间关系:
- 声明的依赖性(即在方法签名中使用类型;尽管我可以使用这个类型)
- 子类和超类层次结构
与相关问题不同, C ++到UML(逆向工程/往返工程),我不需要它:
Unlike the related question, C++ to UML (Reverse engineer / Round-trip engineering), I do NOT need it to:
- 解析定义/实现(cpp和c文件)
- 支持编辑或跳过源代码
相反,解析应用程序和系统头(包括模板类型和typedef)中的类型声明就足够了。我有所有头文件的列表。
Instead, parsing the type declarations in the application and system headers (including template types and typedefs) would be enough. I have lists of all the header files.
我喜欢它,如果它可以处理预处理器定义(特别是#include和#if),但我可以预处理if这是必要的;
I'd prefer it, if it could handle preprocessor definitions (especially #include and #if), but I can preprocess if that's necessary; and/or give it make or project files in various formats.
推荐答案
你总是可以使用doxygen,它会给你完整的关于您的头集合(继承,用法,...)的文档它也可以从类层次结构生成图形。
You could always use doxygen, it'll give you full documentation on your set of header (inheritance, usage, ...) It can also generate graphs out of the class hierarchy.
这篇关于逆向工程C ++的工具(即查看C ++类)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!