From 28a43a43619e361db6688d8f355bcff55bf1c191 Mon Sep 17 00:00:00 2001
From: Chris Lattner
Date: Wed, 5 May 2010 01:35:28 +0000
Subject: [PATCH] document -fdiagnostics-show-category
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103067 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/UsersManual.html | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/docs/UsersManual.html b/docs/UsersManual.html
index 7d7f2631ab..4ba00e0b9a 100644
--- a/docs/UsersManual.html
+++ b/docs/UsersManual.html
@@ -286,6 +286,30 @@ diagnostic. This information tells you the flag needed to enable or disable the
diagnostic, either from the command line or through #pragma GCC diagnostic.
+
+-fdiagnostics-show-category=none/id/name:
+Enable printing category information in diagnostic line.
+This option, which defaults to "none",
+controls whether or not Clang prints the category associated with a diagnostic
+when emitting it. Each diagnostic may or many not have an associated category,
+if it has one, it is listed in the diagnostic categorization field of the
+diagnostic line (in the []'s).
+
+For example, a format string warning will produce these three renditions
+based on the setting of this option:
+
+
+ t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat]
+ t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,1]
+ t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,Format String]
+
+
+This category can be used by clients that want to group diagnostics by
+category, so it should be a high level category. We want dozens of these, not
+hundreds or thousands of them.
+
+
+
-f[no-]diagnostics-fixit-info:
@@ -393,6 +417,10 @@ it:
An option that indicates how to control the diagnostic (for diagnostics that
support it) [-fdiagnostics-show-option].
+A high-level category for the diagnostic for clients that want to group
+ diagnostics by class (for diagnostics that
+ support it) [-fdiagnostics-show-category].
The line of source code that the issue occurs on, along with a caret and
ranges that indicate the important locations [-fcaret-diagnostics].
--
2.40.0