clang-uml
is an automatic C++ to UML class, sequence, package and include diagram generator, driven by YAML configuration files. The main idea behind the project is to easily maintain up-to-date diagrams within a code-base or document legacy code. The configuration file or files for clang-uml
define the types and contents of each generated diagram. The diagrams can be generated in PlantUML, MermaidJS and JSON formats.
Example sequence diagram generated using clang-uml
from this code:
clang-uml
currently supports C++ up 20, as well as C and Objective-C.
To see what clang-uml
can do, checkout the diagrams generated for unit test cases here or examples in clang-uml-examples repository.
These pages provide both user and developer documentation.