summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/cstring-ranges.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/cstring-ranges.c')
-rw-r--r--clang/test/Analysis/cstring-ranges.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Analysis/cstring-ranges.c b/clang/test/Analysis/cstring-ranges.c
index 4fcd7eaa8be..dc6bb67e6de 100644
--- a/clang/test/Analysis/cstring-ranges.c
+++ b/clang/test/Analysis/cstring-ranges.c
@@ -2,6 +2,8 @@
// This test verifies argument source range highlighting.
// Otherwise we've no idea which of the arguments is null.
+// These days we actually also have it in the message,
+// but the range is still great to have.
char *strcpy(char *, const char *);
@@ -10,6 +12,6 @@ void foo() {
strcpy(a, b);
}
-// CHECK: warning: Null pointer argument in call to string copy function
+// CHECK: warning: Null pointer passed as 1st argument to string copy function
// CHECK-NEXT: strcpy(a, b);
// CHECK-NEXT: ^ ~
OpenPOWER on IntegriCloud