A simple script that generates a PlantUML class diagram from a C++ source file
- Install Python 3.11+
- Install Poetry
- Clone the repository and enter the directory.
git clone https://github.com/Makcal/CppToPlantUML.git
cd CppToPlantUML
- Install dependencies.
poetry install --no-root
Done!
Produces a PlantUML class diagram from a C++ source file to out.puml
by default.
poetry run python -m cpp_to_plantuml <source.cpp>
You can enjoy and download your diagram for example with PlantText or compile into many formats using PlantUML.
Read help for options and more information:
poetry run python -m cpp_to_plantuml --help