Install autodia by entering the following commands in the terminal:
sudo apt update sudo apt install autodia
generates UML diagrams from perl or C++ code
AutoDia creates UML files for use with dia. It scans your perl or c++ code, and generates class diagrams in dia's native file format (XML). . Support for other languages can be provided with plugins.