From: Ted Kremenek Date: Tue, 25 Feb 2014 05:42:31 +0000 (+0000) Subject: Remove the FormatSecurity diagnostic group from the FormatNonLiteral warning group. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3180c725099bb2651a8de221d803c62e3c48621b;p=clang Remove the FormatSecurity diagnostic group from the FormatNonLiteral warning group. The FormatSecurity warning group does not need to be a sub-group of the FormatNonLiteral group. Patch by Zach Davis! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202114 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 01aad56102..5d527ab9e8 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -471,7 +471,7 @@ def Format : DiagGroup<"format", [FormatExtraArgs, FormatZeroLength, NonNull, FormatSecurity, FormatY2K, FormatInvalidSpecifier]>, DiagCategory<"Format String Issue">; -def FormatNonLiteral : DiagGroup<"format-nonliteral", [FormatSecurity]>; +def FormatNonLiteral : DiagGroup<"format-nonliteral">; def Format2 : DiagGroup<"format=2", [FormatNonLiteral, FormatSecurity, FormatY2K]>;