[cfe-commits] r100976 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/super.m
Chris Lattner
sabre at nondot.org
Sun Apr 11 11:53:08 PDT 2010
Author: lattner
Date: Sun Apr 11 13:53:08 2010
New Revision: 100976
URL: http://llvm.org/viewvc/llvm-project?rev=100976&view=rev
Log:
avoid double negatives
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/super.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=100976&r1=100975&r2=100976&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Sun Apr 11 13:53:08 2010
@@ -2012,7 +2012,7 @@
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'">;
Modified: cfe/trunk/test/SemaObjC/super.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/super.m?rev=100976&r1=100975&r2=100976&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/super.m (original)
+++ cfe/trunk/test/SemaObjC/super.m Sun Apr 11 13:53:08 2010
@@ -37,7 +37,7 @@
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
More information about the cfe-commits
mailing list