summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/bsd-string.c
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2019-12-10 16:48:17 -0800
committerArtem Dergachev <artem.dergachev@gmail.com>2019-12-11 11:22:36 -0800
commit134faae04259b0412a067c73069f61905fc451d7 (patch)
treeb1d7087bedbf4dc28a0de01a978e916372c5e13f /clang/test/Analysis/bsd-string.c
parentb361d3bbcd85647c9f6640a5f57932c43fdb7a1a (diff)
downloadbcm5719-llvm-134faae04259b0412a067c73069f61905fc451d7.tar.gz
bcm5719-llvm-134faae04259b0412a067c73069f61905fc451d7.zip
[analyzer] CStringChecker: Improve warning messages.
Differential Revision: https://reviews.llvm.org/D71321
Diffstat (limited to 'clang/test/Analysis/bsd-string.c')
-rw-r--r--clang/test/Analysis/bsd-string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/bsd-string.c b/clang/test/Analysis/bsd-string.c
index d8a88836a15..3778664a8ef 100644
--- a/clang/test/Analysis/bsd-string.c
+++ b/clang/test/Analysis/bsd-string.c
@@ -33,11 +33,11 @@ void f3() {
}
void f4() {
- strlcpy(NULL, "abcdef", 6); // expected-warning{{Null pointer argument in call to string copy function}}
+ strlcpy(NULL, "abcdef", 6); // expected-warning{{Null pointer passed as 1st argument to string copy function}}
}
void f5() {
- strlcat(NULL, "abcdef", 6); // expected-warning{{Null pointer argument in call to string copy function}}
+ strlcat(NULL, "abcdef", 6); // expected-warning{{Null pointer passed as 1st argument to string concatenation function}}
}
void f6() {
OpenPOWER on IntegriCloud