Re: Source code: class diagram generator

From: Alan Somers <asomers_at_freebsd.org>
Date: Thu, 02 Oct 2025 03:25:30 UTC
On Wed, Oct 1, 2025 at 7:50 PM Maku Bex <zagazaw2004@gmail.com> wrote:

> Hello,
>
> Is there a tool or application(s) that automatically generates a class
> diagram from source code?
>
> Google search suggests rather inefficient ways to do it and mostly manual
> labor that would take weeks to complete. I tried AI chats and they pretty
> much suggested the same methods. Basically, using VScode with a UML
> extension and manually telling it to add each class and link it....yikes! I
> also looked into the build systems such as GN, bazel, make, and search for
> any packages like rust's crates, ruby gems, npm, etc. I hope I'm not
> wasting my time and looking for a unicorn.
>
> Best,
>

 I think that Doxygen can do it for C and C++.  But preprocessor macros can
easily confuse Doxygen, so the results aren't perfect.