本文主要是介绍linux下使用doxygen和grapviz生成函数调用关系图,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1,参考链接
https://jasoncc.github.io/doc_tools/doxygen.html
2,操作流程
以ubuntu为例,执行如下命令来生成doxygen
$ sudo apt-get install doxygen
$ sudo apt-get install graphviz
$ mkdir /tmp/doxygen && cd /tmp/doxygen
$ doxygen -g my.doxygen
$ vim my.doxygen
$ doxygen mydoxygen
其中,编辑my.doxygen如下,INPUT设置你的源码目录
# document all entities in the project.
EXTRACT_ALL = YES# document all static members of a file.
EXTRACT_STATIC = YES# specify the root directory that contains the project's source files.
INPUT = /home/test/source# search sub-directories for all source files.
RECURSIVE = YES# include the body of functions and classes in the documentation.
INLINE_SOURCES = YES# generate visualization graph by using dot program (part of graphviz package).
HAVE_DOT = YES# generate a call dependency graph for every global function or class method.
CALL_GRAPH = YES
这篇关于linux下使用doxygen和grapviz生成函数调用关系图的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!