DIAGTOOL(1)
πΈ 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 π«Ά.
π COPYRIGHT π
2007-2023, The Clang Team β periodt π
.
π cute sign-off: source/version isClang/15, datedJan 14, 2023. Bye fromDIAGTOOL(1), bestie β go make those diagnostics iconic πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: clang15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: clang15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: clang15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: clang15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms