[cfe-commits] r110857 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/property-not-lvalue.m
Fariborz Jahanian
fjahanian at apple.com
Wed Aug 11 14:22:15 PDT 2010
Author: fjahanian
Date: Wed Aug 11 16:22:15 2010
New Revision: 110857
URL: http://llvm.org/viewvc/llvm-project?rev=110857&view=rev
Log:
Change text of diagnostics on user request.
radar 7948654.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/property-not-lvalue.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=110857&r1=110856&r2=110857&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed Aug 11 16:22:15 2010
@@ -2234,7 +2234,7 @@
def error_nosetter_property_assignment : Error<
"setter method is needed to assign to object using property" " assignment syntax">;
def error_no_subobject_property_setting : Error<
- "expression is not assignable using property assignment syntax">;
+ "expression is not assignable">;
def ext_freestanding_complex : Extension<
"complex numbers are an extension in a freestanding C99 implementation">;
Modified: cfe/trunk/test/SemaObjC/property-not-lvalue.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/property-not-lvalue.m?rev=110857&r1=110856&r2=110857&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/property-not-lvalue.m (original)
+++ cfe/trunk/test/SemaObjC/property-not-lvalue.m Wed Aug 11 16:22:15 2010
@@ -15,8 +15,8 @@
void foo() {
Foo *f;
- f.size.width = 2.2; // expected-error {{expression is not assignable using property assignment syntax}}
- f.size.inner.dim = 200; // expected-error {{expression is not assignable using property assignment syntax}}
+ f.size.width = 2.2; // expected-error {{expression is not assignable}}
+ f.size.inner.dim = 200; // expected-error {{expression is not assignable}}
}
// radar 7628953
@@ -28,7 +28,7 @@
@implementation Gorf
- (void)MyView_sharedInit {
- self.size.width = 2.2; // expected-error {{expression is not assignable using property assignment syntax}}
+ self.size.width = 2.2; // expected-error {{expression is not assignable}}
}
- (NSSize)size {}
@end
More information about the cfe-commits
mailing list