使用doxygen静态分析开源代码

doxygen是一款生成开源代码说明文件的工具,由于不须要编译源码,用做代码的分析也十分方便。html

1、安装


ubuntu - Generate graphs and diagrams with Doxygen - Stack Overflowsudo apt-get install graphviz sudo apt-get install doxygen-gui

2、使用

示例:简单的代码调用关系的分析

代码见用 Graphviz+pvtrace 可视化函数调用 - fengbohello - 博客园前端

1.运行doxywizard出现doxygen的gui前端linux

2.选择源码目录和生成代码目录ubuntu

3.Diagrams选项,选择use dot...函数

 

4.Build 选择Extract_all工具

 

 

5.Dot HAVE_DOT 开发工具

 

5.结果ui

在Files下面code

 

ubuntu - Generate graphs and diagrams with Doxygen - Stack Overflowhtm

how to get doxygen to produce call & caller graphs for c functions - Stack Overflow

 

linux源代码分析和阅读工具比较_开发工具_酷勤网

How to create header include graph using Doxygen – Code Yarns

doxywizard - Doxygen isn't generating documentation for source files - Stack Overflow

相关文章
相关标签/搜索