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>). π«Ά
Β©οΈ COPYRIGHT Β©οΈ
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
- centos-stream 9: clang-tools-extra 23.1.3-1.el9 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- centos-stream 9: clang-tools-extra 23.1.3-1.el9 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms