使用 doxygen 创建(通过 graphviz 的点)整个程序的图形表示
一个堆栈溢出线程(当然是通过谷歌找到的)指导我使用 doxygen 自动创建文档(最初是因为我继承了一个要绘制图表的代码库,并且我厌倦了通过 Dia 图编辑器手动完成它)。
现在 doxygen 确实非常有用。然而,有一件事我似乎仍然无法做到:为整个代码库生成包含(或调用)图。它将生成单个文件的包含层次结构,或单个函数的调用图,但我想看到整个事情(它不是一个非常大的代码库:D)。
有人知道吗?
PS 这在 C 语言中,但我怀疑它是否重要。
A stack overflow thread (found through google of course) directed me to use doxygen to auto-create documentation (originally because I inherited a code base that was to be diagrammed, and I got tired of doing it by hand through Dia Diagram Editor).
Now doxygen has turned out to be really quite useful. However there is one thing I still can't seem to make it do: generate an include (or call) diagram for the entire code base. It'll generate an include hierarchy for a single file, or a call diagram for a single function, but I want to see the whole thing (it's not a very large code base :D ).
Anyone happen to know?
P.S. this in C, but I doubt it matters.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我觉得全程序静态分析确实超出了 Doxygen 的范围。
但是,问题“获取代码的图形函数调用图的工具”要求的内容大致相同,并且答案参考了许多听起来很有前途的不同工具。
Whole-program static analysis is really beyond the scope of Doxygen, I feel.
However, the question 'Tools to get a pictorial function call graph of code' asks for much the same thing, and the answers refer to a number of different tools that sound very promising.