]> granicus.if.org Git - clang/commitdiff
Fix my poor grammar from r210372
authorRichard Trieu <rtrieu@google.com>
Fri, 6 Jun 2014 23:56:22 +0000 (23:56 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 6 Jun 2014 23:56:22 +0000 (23:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210387 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaCXX/warn-undefined-bool-conversion.cpp

index 9ef0877f5bc43f9e938ce09a1b77e0b2f3733c60..7a37effafe89556aa75bbd5053ddff5da0233482 100644 (file)
@@ -2402,10 +2402,10 @@ def warn_impcast_pointer_to_bool : Warning<
     InGroup<PointerBoolConversion>;
 def warn_this_bool_conversion : Warning<
   "'this' pointer cannot be null in well-defined C++ code; pointer may be "
-  "assumed always converted to true">, InGroup<UndefinedBoolConversion>;
+  "assumed to always convert to true">, InGroup<UndefinedBoolConversion>;
 def warn_address_of_reference_bool_conversion : Warning<
   "reference cannot be bound to dereferenced null pointer in well-defined C++ "
-  "code; pointer may be assumed always converted to true">,
+  "code; pointer may be assumed to always convert to true">,
   InGroup<UndefinedBoolConversion>;
 
 def warn_null_pointer_compare : Warning<
index c56b6bc1595ad9187ed023780cd15c4dd33da92e..40bbbd84a89639a9390210a8d14947850d4655f0 100644 (file)
@@ -6,10 +6,10 @@
 void test1(int &x) {
   if (x == 1) { }
   if (&x) { }
-  // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed always converted to true}}
+  // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true}}
 
   if (!&x) { }
-  // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed always converted to true}}
+  // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true}}
 }
 
 class test2 {
@@ -17,19 +17,19 @@ class test2 {
 
   void foo() {
     if (this) { }
-    // expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be assumed always converted to true}}
+    // expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true}}
 
     if (!this) { }
-    // expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be assumed always converted to true}}
+    // expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true}}
   }
 
   void bar() {
     if (x == 1) { }
     if (&x) { }
-    // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed always converted to true}}
+    // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true}}
 
     if (!&x) { }
-    // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed always converted to true}}
+    // expected-warning@-1{{reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true}}
   }
 
   int &x;