]> granicus.if.org Git - clang/commitdiff
Add support for -Woverlength-strings.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 5 Aug 2010 02:57:44 +0000 (02:57 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 5 Aug 2010 02:57:44 +0000 (02:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110305 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticLexKinds.td

index 6d1eb4ad12b377ea418a935cfd2e4f90a95e9e93..378a8bfd1295f998fbaafefc8a54989ac8d6190d 100644 (file)
@@ -81,6 +81,7 @@ def : DiagGroup<"old-style-cast">;
 def : DiagGroup<"old-style-definition">;
 def OutOfLineDeclaration : DiagGroup<"out-of-line-declaration">;
 def : DiagGroup<"overflow">;
+def OverlengthStrings : DiagGroup<"overlength-strings">;
 def : DiagGroup<"overloaded-virtual">;
 def : DiagGroup<"packed">;
 def PointerArith : DiagGroup<"pointer-arith">;
index eb16121fd6230524eb2696ab325d684347ebf6f1..9b06fa80ba96fa8e370e42544b8b092004238557 100644 (file)
@@ -96,7 +96,7 @@ def warn_octal_escape_too_large : ExtWarn<"octal escape sequence out of range">;
 def warn_hex_escape_too_large : ExtWarn<"hex escape sequence out of range">;
 def ext_string_too_long : Extension<"string literal of length %0 exceeds "
   "maximum length %1 that %select{C90|ISO C99|C++}2 compilers are required to "
-  "support">;
+  "support">, InGroup<OverlengthStrings>;
   
 //===----------------------------------------------------------------------===//
 // PTH Diagnostics