]> granicus.if.org Git - clang/commitdiff
Change text of diagnostics on user request.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 11 Aug 2010 21:22:15 +0000 (21:22 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 11 Aug 2010 21:22:15 +0000 (21:22 +0000)
radar 7948654.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110857 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjC/property-not-lvalue.m

index aaf8634758e7a8f15cbc88f6c1deece823cea123..f6987e8e3af3cbb9c845ec02f5e2391a1c7b3b7c 100644 (file)
@@ -2234,7 +2234,7 @@ def ext_integer_complement_complex : Extension<
 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">;
index 55eec3e45397627149f49662c4646d61cf5429e9..3d95d2607f8e4b14a17d6a6032b2a87d11c6f369 100644 (file)
@@ -15,8 +15,8 @@ typedef struct NSSize {
 
 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 @@ void foo() {
 
 @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