DIAGTOOL(1)
π 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 π«Ά
π COPYRIGHT π
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
- fedora 43: clang20-tools-extra 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 43: clang20-tools-extra 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: clang20-tools-extra 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: clang20-tools-extra 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms