Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate c++ class diagram with inheritance as well as composition relationship?

I have been working on a large c++ project, and I want to generate a diagram showing the inheritance as well as composition relationship between classes, I have been googling for a long time seeking for a solution. As now, I found a lot of tools (like understand, or vs) that can be used to generate UML diagram showing the inheritance relation but not for the composition. I really need to see the references between each class for understanding the design pattern inside it, is there any suggestions?

like image 402
alexzzp Avatar asked Dec 08 '25 20:12

alexzzp


1 Answers

Doxygen can generate UML diagrams on a per-class basis including inheritance and composition using the DOT tool. It's only a static tool though.

# Modify these settings in your doxygen config file.
UML_LOOK = YES
HAVE_DOT = YES
like image 160
pyj Avatar answered Dec 10 '25 10:12

pyj