DIAGTOOL(1)

πŸ“¦
version 20.1.8 Β· 4 versions
, in fedora 43, fedora 44

πŸ’… DIAGTOOL β€” ok bestie, it's the clang diagnostics tool

so this is diagtool, from the Clang manual, section 1. it's giving "small but mighty" and you're gonna love her.


✨ NAME ✨

diagtool β€” the clang diagnostics tool 🩺


🌸 SYNOPSIS 🌸

diagtool command [args]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: diagtool isn't one tool, it's literally a combination of four tools for dealing with diagnostics in clang. four. a whole squad. πŸ‘‘


πŸŽ€ SUBCOMMANDS πŸŽ€

diagtool is separated into several subcommands, and each one is tailored to a different purpose. here's the quick lil summary of each command, and then the deets come in the sections right after. iykyk πŸ’–

  • find-diagnostic-id β€” print the id of the given diagnostic.
  • list-warnings β€” list warnings and their corresponding flags.
  • show-enabled β€” show which warnings are enabled for a given command line.
  • tree β€” show warning flags in a tree view.

πŸ” find-diagnostic-id

diagtool find-diagnostic-id diagnostic-name

πŸ“‹ list-warnings

diagtool list-warnings

βœ… show-enabled

diagtool show-enabled [options] filename ...

🌳 tree

diagtool tree [diagnostic-group]

πŸ‘‘ AUTHOR πŸ‘‘

maintained by the Clang / LLVM Team (<http://clang.llvm.org>) β€” the ones who keep this whole thing slaying 🫢


2007-2025, The Clang Team β€” that's a long-running era fr fr 🌈


and that's the whole page bestie, no cap. this version of the Clang manual page for diagtool is dated Sep 03, 2025 β€” go forth and diagnose, you main character πŸŽ€βœ¨

πŸ“¦ where this page comes from