From nobody Thu Oct 2 03:25:30 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cccd41yXhz6B2xj for ; Thu, 02 Oct 2025 03:25:44 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cccd36xR1z3qfx for ; Thu, 02 Oct 2025 03:25:43 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-62fc28843ecso792040a12.1 for ; Wed, 01 Oct 2025 20:25:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759375542; x=1759980342; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FgfCY13Tqvb69QoGZXFhYOAV6riLe0gLu+xI2iF6mF8=; b=jqJDEk7BkYMQe8bqwWkte+Wom+4R9HqtBWUOu2WjO0a4M90VO2y1f1liR3A1ANnIZ+ H027H2X4rPpviZ6KzBGjX3GQkc48udUwdbAN+7mLQu2+GfkKAQuJ8o9KmwFCPKvAn4it oOHPP8z1SSamcU+jUGjbhfmz64RUWPpJl+vGFAI1vsncnBJfv6BzuuwZzyTfJviPvplA F3nyFEFWKsAnJ8vzlP948bGGMx9fLiJ9v1L0bYBNuQBWJsTaXPSHyODshQ2sx/WPm4JY IZkD68n1ugB9hy/C+Epy+Az8/SEF9qXh4KO+aJ1zQCS9hKgPiQ+KBDvn3/TreWNtDika knNA== X-Gm-Message-State: AOJu0Yxi9/64ZAhtRYNScb5Vi+6b5meNC9OODMF32Mb61EN/37GIQ9kQ WMzkl/n3CMDBgUyPTul/ZT9TG1zgbfTqAVIu1VRyUvkh2N/yXYUZoazivKT+phGajKh/7S6Oxd/ nP6s7tI1U2wT5fvWELm5qnjZwH0v1vX4vwlLw4ug= X-Gm-Gg: ASbGnctFP/L8iBXeMESfAGhflT88HHl+Gah7IgCmdl/s40M1i0z0q6lGjQl5iLdS8n+ 8pynbcTvPt4fw/7se5lqdsBAvWP6GxuDM3RVJBMdKfYEada3Si1WwHsBQdW1r5ONFeP+T6J7V6k EqMH4+M35+155MnxZrAHnTw55VIU/3UDEkIOJCeOJBCtZKM50M64B9qeqVkPIABvsnzIwfZjJlc BSKlPv/K0BOApyPLHwa34aWl5LOjU0= X-Google-Smtp-Source: AGHT+IEACA6Y3KcKBrPy0hGjfRKP3dxe+mkQCQabqtUHHA+O0ncRgt+aqS0ksVYLWXPDMaaZAUhBCp/L8s15C4C7meA= X-Received: by 2002:a05:6402:35cd:b0:637:5647:3e5e with SMTP id 4fb4d7f45d1cf-637564740f2mr1868141a12.35.1759375542179; Wed, 01 Oct 2025 20:25:42 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Alan Somers Date: Wed, 1 Oct 2025 21:25:30 -0600 X-Gm-Features: AS18NWAE44og3QtShR-bMaCzNi30tfc5ZaRNf4crZDuyfdyhfUn-LYC-x-j4oHU Message-ID: Subject: Re: Source code: class diagram generator To: Maku Bex Cc: FreeBSD Current Content-Type: multipart/alternative; boundary="00000000000037dcf10640248a67" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cccd36xR1z3qfx --00000000000037dcf10640248a67 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 1, 2025 at 7:50=E2=80=AFPM Maku Bex wro= te: > 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 fo= r > 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. --00000000000037dcf10640248a67 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Oct 1, 2025 at 7:50=E2=80=AFPM Maku B= ex <zagazaw2004@gmail.com&g= t; wrote:
Hello,

Is there a = tool or application(s) that automatically generates a class diagram from so= urce code?

Google search= suggests rather inefficient ways to do it and mostly manual labor that wou= ld 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 rus= t's crates, ruby gems, npm, etc. I hope I'm not wasting my time and= looking for a unicorn.

= Best,

=C2=A0I think that Doxyge= n can do it for C and C++.=C2=A0 But preprocessor macros can easily confuse= Doxygen, so the results aren't perfect.
--00000000000037dcf10640248a67--