]> granicus.if.org Git - clang/commitdiff
Remove the FormatSecurity diagnostic group from the FormatNonLiteral warning group.
authorTed Kremenek <kremenek@apple.com>
Tue, 25 Feb 2014 05:42:31 +0000 (05:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 25 Feb 2014 05:42:31 +0000 (05:42 +0000)
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

include/clang/Basic/DiagnosticGroups.td

index 01aad561026033c2aca7c4d4a9a4306ecc59eefa..5d527ab9e8aabf8bc2701b7282ce93faf6c7279d 100644 (file)
@@ -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]>;