mirror of https://github.com/microsoft/clang.git
Rename -Wstrl-incorrect-size to -Wstrlcpy-strlcat-size. This warning really is just specific to strlcpy and strlcat.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d23b4a6e8
commit
00fd773ae9
|
@ -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">;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue