DIAGTOOL(1)

πŸŽ€ NAME πŸŽ€

okay so diagtool(1) is the clang diagnostics tool, and this page comes from the Clang manual. She’s giving utility-belt energy for diagnostics, and we’re obsessed. πŸ’–

✨ SYNOPSIS ✨

diagtool command [args]

🌸 DESCRIPTION 🌸

diagtool is literally a combination of four tools for dealing with diagnostics in clang. no cap, four little besties in one trench coat. 🫢

πŸ‘‘ SUBCOMMANDS πŸ‘‘

diagtool is separated into several subcommands, each one tailored to a different purpose. Here’s the quick tea on each command β€” the sections right after have the extra detail. πŸ’…

  • 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>). 🫢

2007-2026, The Clang Team. periodt. πŸ’–


cute little footer sign-off: this is the Clang manual, version 23, dated Oct 06, 2026. mwah πŸ’‹

πŸ“¦ where this page comes from