C++-生成UML类图

发布时间 2023-06-29 00:42:47作者: Theseus‘Ship

C++-生成UML类图

可以用doxygen根据代码生成文档

  1. 安装
git clone https://github.com/doxygen/doxygen.git
cd doxygen

mkdir build
cd build
cmake -G "Unix Makefiles" ..
make

make install
  1. 使用
$ cd CODE_DIR
$ doxygen -g Doxygen.config  # 生成配置文件 
$ vi Doxygen.config          # 修改配置文件
RECURSIVE              = YES 
$ doxygen Doxygen.config     # 根据代码生成文档
  1. 生成的文档在html目录下,生成的类继承图.

Eclipse + UMLet