[cfe-commits] r72391 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/Sema/nonnull-check.c test/Sema/nonnull.c

Chris Lattner sabre at nondot.org
Mon May 25 11:18:56 PDT 2009


Author: lattner
Date: Mon May 25 13:18:56 2009
New Revision: 72391

URL: http://llvm.org/viewvc/llvm-project?rev=72391&view=rev
Log:
reword a warning for clarity

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/test/Sema/nonnull-check.c
    cfe/trunk/test/Sema/nonnull.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=72391&r1=72390&r2=72391&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Mon May 25 13:18:56 2009
@@ -1624,7 +1624,8 @@
 def warn_printf_missing_format_string : Warning<
   "format string missing">, InGroup<Format>;
 def warn_null_arg : Warning<
-  "argument is null where non-null is required">, InGroup<NonNull>;
+  "null passed to a callee which requires a non-null argument">,
+  InGroup<NonNull>;
 def warn_printf_empty_format_string : Warning<
   "format string is empty">, InGroup<FormatZeroLength>;
 def warn_printf_format_string_is_wide_literal : Warning<

Modified: cfe/trunk/test/Sema/nonnull-check.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/nonnull-check.c?rev=72391&r1=72390&r2=72391&view=diff

==============================================================================
--- cfe/trunk/test/Sema/nonnull-check.c (original)
+++ cfe/trunk/test/Sema/nonnull-check.c Mon May 25 13:18:56 2009
@@ -13,14 +13,14 @@
 {
   func1(cp1, cp2, i1);
 
-  func1(0, cp2, i1);  // expected-warning {{argument is null where non-null is required}}
-  func1(cp1, 0, i1);  // expected-warning {{argument is null where non-null is required}}
+  func1(0, cp2, i1);  // expected-warning {{null passed to a callee which requires a non-null argument}}
+  func1(cp1, 0, i1);  // expected-warning {{null passed to a callee which requires a non-null argument}}
   func1(cp1, cp2, 0);
 
 
-  func3(0, i2, cp3, i3); // expected-warning {{argument is null where non-null is required}}
-  func3(cp3, i2, 0, i3);  // expected-warning {{argument is null where non-null is required}}
+  func3(0, i2, cp3, i3); // expected-warning {{null passed to a callee which requires a non-null argument}}
+  func3(cp3, i2, 0, i3);  // expected-warning {{null passed to a callee which requires a non-null argument}}
 
-  func4(0, cp1); // expected-warning {{argument is null where non-null is required}}
-  func4(cp1, 0); // expected-warning {{argument is null where non-null is required}}
+  func4(0, cp1); // expected-warning {{null passed to a callee which requires a non-null argument}}
+  func4(cp1, 0); // expected-warning {{null passed to a callee which requires a non-null argument}}
 }

Modified: cfe/trunk/test/Sema/nonnull.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/nonnull.c?rev=72391&r1=72390&r2=72391&view=diff

==============================================================================
    (empty)





More information about the cfe-commits mailing list