]> granicus.if.org Git - clang/commitdiff
add a few more categories.
authorChris Lattner <sabre@nondot.org>
Mon, 24 May 2010 21:54:02 +0000 (21:54 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 May 2010 21:54:02 +0000 (21:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104566 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticLexKinds.td

index 1f18352d20b52dd94a919a2c91d4068be465dc6e..a8a5e5914eae55553fec870aa572889f58435acf 100644 (file)
@@ -138,16 +138,17 @@ def Parentheses : DiagGroup<"parentheses", [DiagGroup<"idiomatic-parentheses">]>
 // legacy reasons.
 def Conversion : DiagGroup<"conversion",
                            [DiagGroup<"shorten-64-to-32">]>,
-                 DiagCategory<"Value Conversion">;
+                 DiagCategory<"Value Conversion Issue">;
 
 def Unused : DiagGroup<"unused",
                        [UnusedArgument, UnusedFunction, UnusedLabel,
                         // UnusedParameter, (matches GCC's behavior)
-                        UnusedValue, UnusedVariable]>;
+                        UnusedValue, UnusedVariable]>,
+                        DiagCategory<"Unused Entity Issue">;
 
 // Format settings.
 def Format : DiagGroup<"format", [FormatExtraArgs, FormatZeroLength, NonNull]>,
-             DiagCategory<"Format String">;
+             DiagCategory<"Format String Issue">;
 def FormatSecurity : DiagGroup<"format-security", [Format]>;
 def FormatNonLiteral : DiagGroup<"format-nonliteral", [FormatSecurity]>;
 def FormatY2K : DiagGroup<"format-y2k", [Format]>;
index ae7ae39c6ba1f0ceedf1f7f05569f0be86994216..848e85c8ba41b188c09ad796e8dec0a85701b896 100644 (file)
@@ -11,7 +11,7 @@
 // Lexer Diagnostics
 //===----------------------------------------------------------------------===//
 
-let Component = "Lex" in {
+let Component = "Lex", CategoryName = "Lexical or Preprocessor Issue" in {
 
 def null_in_string : Warning<"null character(s) preserved in string literal">;
 def null_in_char : Warning<"null character(s) preserved in character literal">;