DIAGTOOL(1)

πŸ“¦ version 15.0.7, in opensuse-leap 16.0

🌸 NAME 🌸

diagtool β€” clang diagnostics tool. This is the DIAGTOOL(1) page from the Clang manual, and honestly it’s giving very β€œI have my diagnostic life together” energy, bestie πŸ’…βœ¨.

✨ SYNOPSIS ✨

diagtool command [args]

πŸ’– DESCRIPTION πŸ’–

okay so diagtool is a combination of four tools for dealing with diagnostics in clang. That’s the whole tea: four little diagnostic besties, all here to help you deal with diagnostics in clang 🫢πŸ”₯.

πŸŽ€ SUBCOMMANDS πŸŽ€

diagtool is separated into several subcommands, each one tailored to a different purpose. Here’s the quick rundown, with more detail in the sections that follow β€” iykyk πŸ’«.

  • find-diagnostic-id β€” prints the id of the given diagnostic. πŸ¦‹
  • list-warnings β€” lists warnings and their corresponding flags. ✨
  • show-enabled β€” shows which warnings are enabled for a given command line. πŸ”₯
  • tree β€” shows warning flags in a tree view. 🌳

πŸ¦‹ find-diagnostic-id πŸ¦‹

diagtool find-diagnostic-id diagnostic-name

This one prints the id of the given diagnostic, periodt πŸ’….

πŸ“ list-warnings πŸ“

diagtool list-warnings

This one lists warnings and their corresponding flags, slay πŸ’–.

🌈 show-enabled 🌈

diagtool show-enabled [options] filename ...

This one shows which warnings are enabled for a given command line β€” very β€œlet’s check the vibe” of it all πŸ‘‘.

🌳 tree 🌳

diagtool tree [diagnostic-group]

This one shows warning flags in a tree view. Cute, organized, iconic 🌸.

πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the Clang / LLVM Team (<http://clang.llvm.org>) β€” yes, that’s the exact URL, bestie, don’t @ me 🫢.

2007-2023, The Clang Team β€” periodt πŸ’….


πŸ’– cute sign-off: source/version is Clang / 15, dated Jan 14, 2023. Bye from DIAGTOOL(1), bestie β€” go make those diagnostics iconic 🌈✨
πŸ“¦ where this page comes from