Binary package “autodia” in ubuntu xenial
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.