如果可能的话,我更喜欢可视化图来更好地理解代码的流程.我不熟悉程序语言的图表工具(或者如果它存在的话).我记得在大学时我们使用层次结构和数据流程图来处理程序语言.
我知道有很多工具可以用来绘制OO语言,但我想要一个用于C语言的工具.任何帮助都会受到赞赏.
建议:
> 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.
>开源/学术和商业许可证(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.
>(nedit,vim,emacs)VIM TUTORIAL
>班级名称
>宏定义
>枚举名称
>普查员
>功能定义
>函数原型/声明
>类,接口,结构和联合数据成员
>结构名称
> typedefs
>工会名称
>变量(定义和外部声明)
>(cmd line,vim)VIM TUTORIAL
>允许搜索代码:
>所有对符号的引用
>全球定义
>函数调用的函数
>调用函数的函数
>文字字符串
>正则表达式
>一个文件
>包含文件的文件