[cfe-commits] r110305 - in /cfe/trunk/include/clang/Basic: DiagnosticGroups.td DiagnosticLexKinds.td

Eli Friedman eli.friedman at gmail.com
Wed Aug 4 19:57:44 PDT 2010


Author: efriedma
Date: Wed Aug  4 21:57:44 2010
New Revision: 110305

URL: http://llvm.org/viewvc/llvm-project?rev=110305&view=rev
Log:
Add support for -Woverlength-strings.


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticGroups.td
    cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=110305&r1=110304&r2=110305&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Wed Aug  4 21:57:44 2010
@@ -81,6 +81,7 @@
 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">;

Modified: cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td?rev=110305&r1=110304&r2=110305&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticLexKinds.td Wed Aug  4 21:57:44 2010
@@ -96,7 +96,7 @@
 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





More information about the cfe-commits mailing list