DIAGTOOL(1)

πŸ“¦
version 21.1.8 Β· 4 versions
, in epel 10, fedora 43

πŸ’– DIAGTOOL πŸ’–

okay so bestie, welcome to diagtool β€” it's the clang diagnostics tool, from the Clang manual, and it is lowkey four tools in a trench coat. let's get into it 🫢


✨ SYNOPSIS ✨

diagtool command [args]

🌸 DESCRIPTION 🌸

diagtool is literally a combination of four tools for dealing with diagnostics in clang. four. count 'em. not three, not five. four. iconic behavior honestly πŸ’…


πŸ¦‹ SUBCOMMANDS πŸ¦‹

so diagtool is split up into several subcommands, and each one is tailored to a different purpose. here's the quick rundown of each, and then the sections after this go deeper. no cap. ✨

  • 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>). yeah, they're the ones keeping this whole thing alive, periodt. πŸ’œ


2007-2026, The Clang Team


okay that's the whole page bestie, you ate that. one last thing before you go β€” this was the diagtool page, page 21, dated Jul 22, 2026, from the Clang manual. mwah, go forth and debug πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from