C:绘制一个大型图书馆

前端之家收集整理的这篇文章主要介绍了C:绘制一个大型图书馆前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
是否有任何工具可以帮助绘制大型C库的图表?我正在开发一个将现有C库移植到C的项目. C库很大程度上没有文档,没有图表.我想使用CASE工具来帮助我理解各种文件的交互方式.大多数文件中都有外部变量.

如果可能的话,我更喜欢可视化图来更好地理解代码的流程.我不熟悉程序语言的图表工具(或者如果它存在的话).我记得在大学时我们使用层次结构和数据流程图来处理程序语言.

我知道有很多工具可以用来绘制OO语言,但我想要一个用于C语言的工具.任何帮助都会受到赞赏.

建议:

doxygen

> CodeProject Tutorial
> Doxygen Official Tutorial
> Stackoverflow Force Undocumented C code
> Remember to download Graphviz if you want a graphical representation and set the dot path ie:”C:\Program Files\Graphviz2.26.3\bin\”

It can help you in three ways:

It can generate an on-line
documentation browser (in HTML) and/or
an off-line reference manual (in )
from a set of documented source files.
There is also support for generating
output in RTF (MS-Word),PostScript,
hyperlinked PDF,compressed HTML,and
Unix man pages. The documentation is
extracted directly from the sources,
which makes it much easier to keep the
documentation consistent with the
source code. You can configure doxygen
to extract the code structure from
undocumented source files. This is
very useful to quickly find your way
in large source distributions. You can
also visualize the relations between
the varIoUs elements by means of
include dependency graphs,inheritance
diagrams,and collaboration diagrams,
which are all generated automatically.
You can even `abuse’ doxygen for
creating normal documentation.

cppdepend

>开源/学术和商业许可证(MSVS插件)

Improve your code base quality.
CppDepend is a tool that simplifies
managing a complex C\C++ (Native,Mixed
and COM) code base. Architects and
developers can analyze code structure,
specify design rules,do effective
code reviews and master evolution by
comparing different versions of the
code. These Cases Studies shows the
utility of CppDepend to have a deep
view of your architecture,design and
implementation. Refactor and Improve
your design and architecture.
CppDepend provides useful graphs to
analyze your design and architecture.
CQL language gives you a flexibility
to create your custom queries and have
a deep view of your code base. here’s
a sample of using CppDepend to assist
your refactoring. Assist your
migration. Understanding the existing
migration. CppDepend helps you in your
migration process,you can find here
the advantages of using CppDepend in
your migration process.

ctag

>(nedit,vim,emacs)VIM TUTORIAL

>班级名称
>宏定义
>枚举名称
>普查员
>功能定义
>函数原型/声明
>类,接口,结构和联合数据成员
>结构名称
> typedefs
>工会名称
>变量(定义和外部声明)

csope

>(cmd line,vim)VIM TUTORIAL

>允许搜索代码
>所有对符号的引用
>全球定义
>函数调用函数
>调用函数函数
>文字字符串
>正则表达式
>一个文件
>包含文件文件

解决方法

Doxygen可以生成各种类型的交互图 – 文件,函数调用等.使用EXTRACT_ALL配置变量集,即使对于没有文档注释的代码,它也会生成图表和交叉引用的文档.
原文链接:https://www.f2er.com/c/119003.html

猜你在找的C&C++相关文章