]> granicus.if.org Git - clang/commitdiff
teach clang that -Wunused turns on all unused warnings, even though most
authorChris Lattner <sabre@nondot.org>
Mon, 8 Jun 2009 04:26:30 +0000 (04:26 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Jun 2009 04:26:30 +0000 (04:26 +0000)
of these are not implemented yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73042 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td

index 7c6b090a33a0c6bdcce5a6c2544bbd8be7868b76..501807df77a3df8443141d27d13cfb1441bf59b0 100644 (file)
@@ -85,9 +85,10 @@ def Trigraphs : DiagGroup<"trigraphs">;
 def : DiagGroup<"type-limits">;
 def Uninitialized  : DiagGroup<"uninitialized">;
 def UnknownPragmas : DiagGroup<"unknown-pragmas">;
-def : DiagGroup<"unused-function">;
-def : DiagGroup<"unused-label">;
-def : DiagGroup<"unused-parameter">;
+def UnusedArgument : DiagGroup<"unused-argument">;
+def UnusedFunction : DiagGroup<"unused-function">;
+def UnusedLabel : DiagGroup<"unused-label">;
+def UnusedParameter : DiagGroup<"unused-parameter">;
 def UnusedValue    : DiagGroup<"unused-value">;
 def UnusedVariable : DiagGroup<"unused-variable">;
 def : DiagGroup<"variadic-macros">;
@@ -98,6 +99,10 @@ def : DiagGroup<"write-strings">;
 // Aggregation warning settings.
 
 
+def Unused : DiagGroup<"unused",
+                       [UnusedArgument, UnusedFunction, UnusedLabel,
+                        UnusedParameter, UnusedValue, UnusedVariable]>;
+
 // Format settings.
 def Format : DiagGroup<"format", [FormatExtraArgs, FormatZeroLength, NonNull]>;
 def FormatSecurity : DiagGroup<"format-security", [Format]>;