[cfe-commits] r138038 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/Sema/warn-strlcpycat-size.c

Ted Kremenek kremenek at apple.com
Fri Aug 19 07:35:32 PDT 2011


Author: kremenek
Date: Fri Aug 19 09:35:32 2011
New Revision: 138038

URL: http://llvm.org/viewvc/llvm-project?rev=138038&view=rev
Log:
Rename -Wstrl-incorrect-size to -Wstrlcpy-strlcat-size.  This warning really is just specific to strlcpy and strlcat.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/test/Sema/warn-strlcpycat-size.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=138038&r1=138037&r2=138038&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Fri Aug 19 09:35:32 2011
@@ -282,7 +282,7 @@
   "size argument in %0 call appears to be size of the source; expected the size of "
   "the destination">,
   DefaultIgnore,
-  InGroup<DiagGroup<"strl-incorrect-size">>;
+  InGroup<DiagGroup<"strlcpy-strlcat-size">>;
 def note_strlcpycat_wrong_size : Note<
   "change size argument to be the size of the destination">;
 

Modified: cfe/trunk/test/Sema/warn-strlcpycat-size.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-strlcpycat-size.c?rev=138038&r1=138037&r2=138038&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-strlcpycat-size.c (original)
+++ cfe/trunk/test/Sema/warn-strlcpycat-size.c Fri Aug 19 09:35:32 2011
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -Wstrl-incorrect-size -verify -fsyntax-only %s
+// RUN: %clang_cc1 -Wstrlcpy-strlcat-size -verify -fsyntax-only %s
 
 typedef __SIZE_TYPE__ size_t;
 size_t strlcpy (char * restrict dst, const char * restrict src, size_t size);





More information about the cfe-commits mailing list