]> granicus.if.org Git - clang/commitdiff
avoid double negatives
authorChris Lattner <sabre@nondot.org>
Sun, 11 Apr 2010 18:53:08 +0000 (18:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 Apr 2010 18:53:08 +0000 (18:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100976 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjC/super.m

index 7f7048462f0a8a9f277fff6f427052550616db3c..8bdc31ef32651ae32b19e2f53445c49f09a61c39 100644 (file)
@@ -2012,7 +2012,7 @@ def error_no_super_class : Error<
 def err_invalid_receiver_to_message : Error<
   "invalid receiver to message expression">;
 def err_invalid_receiver_to_message_super : Error<
-  "'super' not valid when not in a method">;
+  "'super' is only valid in a method body">;
 def warn_bad_receiver_type : Warning<
   "receiver type %0 is not 'id' or interface pointer, consider "
   "casting it to 'id'">;
index a644e84e1cfa83f9a2a96b2a128f65a1fae1796e..74415b4f72560c552d135e5a2bd790151abe7b3c 100644 (file)
@@ -37,7 +37,7 @@ void f0(int super) {
                 expected-warning {{method '-m' not found (return type defaults to 'id')}}
 }
 void f1(int puper) {
-  [super m]; // expected-error{{'super' not valid when not in a method}}
+  [super m]; // expected-error{{'super' is only valid in a method body}}
 }
 
 // radar 7400691