[c++] Generating UML from C++ code?

Is there a tool that can parse C++ files within a project and generate UML from it?

This question is related to c++ uml

The answer is


If its just diagrams that you want, doxygen does a pretty good job.


Seems Umbrello produces best UML from C++ code (suggest to use latest version >= 2.22) comparing to command-line autodia for Dia and other tools.

StarUML have not produced good diagrams for me: strange import, not usable, does not work for many people: https://github.com/staruml/Cpp/issues


I believe Enterprise Architect can do that.


I find that Wikipedia can be a great source of information about such tools, especially for comparison tables. There's a page on UML tools. See in particular the reverse engineered languages column.


I believe Enterprise Architect can do that.


StarUML does just that and it is free. Unfortunately it hasn't been updated for a while. There were a couple of offshoot projects (as the project admins wouldn't allow it to be taken over) but they too have died a death.


If its just diagrams that you want, doxygen does a pretty good job.


I've developed a tool called Doxygraph which can parse the XML generated by Doxygen and turn it into an interactive UML class diagram which you can view in a web browser or import into any software that can read Graphviz "dot" files.


Whoever wants UML deserves Rational Rose :)


If its just diagrams that you want, doxygen does a pretty good job.


I've developed a tool called Doxygraph which can parse the XML generated by Doxygen and turn it into an interactive UML class diagram which you can view in a web browser or import into any software that can read Graphviz "dot" files.


UML Studio does this quite well in my experience, and will run in "freeware mode" for small projects.


StarUML does just that and it is free. Unfortunately it hasn't been updated for a while. There were a couple of offshoot projects (as the project admins wouldn't allow it to be taken over) but they too have died a death.


Whoever wants UML deserves Rational Rose :)


I have used Rational Rose and Rational Rhapsody for reverse engineering large projects. I would prefer Rational Rhapsody for getting the UML class files for C++ !


I find that Wikipedia can be a great source of information about such tools, especially for comparison tables. There's a page on UML tools. See in particular the reverse engineered languages column.


Whoever wants UML deserves Rational Rose :)


UML Studio does this quite well in my experience, and will run in "freeware mode" for small projects.


Whoever wants UML deserves Rational Rose :)


If its just diagrams that you want, doxygen does a pretty good job.


I believe Enterprise Architect can do that.


Seems Umbrello produces best UML from C++ code (suggest to use latest version >= 2.22) comparing to command-line autodia for Dia and other tools.

StarUML have not produced good diagrams for me: strange import, not usable, does not work for many people: https://github.com/staruml/Cpp/issues


I have used Rational Rose and Rational Rhapsody for reverse engineering large projects. I would prefer Rational Rhapsody for getting the UML class files for C++ !


StarUML does just that and it is free. Unfortunately it hasn't been updated for a while. There were a couple of offshoot projects (as the project admins wouldn't allow it to be taken over) but they too have died a death.


UML Studio does this quite well in my experience, and will run in "freeware mode" for small projects.