]> granicus.if.org Git - clang/commitdiff
Put warnings in the 'Deprecated' group into a 'Deprecations' DiagCategory. Fixes...
authorTed Kremenek <kremenek@apple.com>
Mon, 19 Jul 2010 20:20:06 +0000 (20:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 19 Jul 2010 20:20:06 +0000 (20:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108743 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td

index 7c34a9fc66b1b5b15d164c56838b3a9df14d0f51..1416d7195a7b3e91d3bfa7e6053d62038bdc64df 100644 (file)
@@ -33,7 +33,11 @@ def Comment : DiagGroup<"comment">;
 def : DiagGroup<"ctor-dtor-privacy">;
 def : DiagGroup<"declaration-after-statement">;
 def GNUDesignator : DiagGroup<"gnu-designator">;
-def Deprecated : DiagGroup<"deprecated">;
+
+def DeprecatedDeclarations : DiagGroup<"deprecated-declarations">;
+def Deprecated : DiagGroup<"deprecated", [ DeprecatedDeclarations] >,
+                 DiagCategory<"Deprecations">;
+
 def : DiagGroup<"disabled-optimization">;
 def : DiagGroup<"discard-qual">;
 def : DiagGroup<"div-by-zero">;
index 9f83406c7213425eec37eb4c8371507b7d5447c5..78a754ad609835679b8c076d23e985940aaf0bbf 100644 (file)
@@ -1684,9 +1684,9 @@ def note_dependent_var_use : Note<"must qualify identifier to find this "
     "declaration in dependent base class">;
 def err_undeclared_use : Error<"use of undeclared %0">;
 def warn_deprecated : Warning<"%0 is deprecated">,
-    InGroup<DiagGroup<"deprecated-declarations">>;
+    InGroup<DeprecatedDeclarations>;
 def warn_unavailable : Warning<"%0 is unavailable">,
-    InGroup<DiagGroup<"unavailable-declarations">>;
+    InGroup<DeprecatedDeclarations>;
 def note_unavailable_here : Note<
   "function has been explicitly marked %select{unavailable|deleted}0 here">;
 def warn_not_enough_argument : Warning<