teach clang that -Wunused turns on all unused warnings, even though most
of these are not implemented yet. llvm-svn: 73042
This commit is contained in:
parent
9e81b02ec5
commit
6143fb504c
|
@ -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]>;
|
||||
|
|
Loading…
Reference in New Issue