]> granicus.if.org Git - clang/commitdiff
Rename -Wstrl-incorrect-size to -Wstrlcpy-strlcat-size. This warning really is just...
authorTed Kremenek <kremenek@apple.com>
Fri, 19 Aug 2011 14:35:32 +0000 (14:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 19 Aug 2011 14:35:32 +0000 (14:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138038 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/warn-strlcpycat-size.c

index 503c9d6af9f5d7717607a9ca7fc5245e2a1891bb..93521ed596d2ac7c0fca4968d6fa34e8eada90dc 100644 (file)
@@ -282,7 +282,7 @@ def warn_strlcpycat_wrong_size : Warning<
   "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">;
 
index 34830120d5d7ad06d848dd791a8f024f84602843..8babdde276fadda3c34c3ba48d88342a23bbc827 100644 (file)
@@ -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);