From 741c362a1cb4f3644d5a4e6b8eb9244799e4ade6 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 11 Aug 2010 21:22:15 +0000 Subject: [PATCH] Change text of diagnostics on user request. radar 7948654. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110857 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 2 +- test/SemaObjC/property-not-lvalue.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index aaf8634758..f6987e8e3a 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -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">; diff --git a/test/SemaObjC/property-not-lvalue.m b/test/SemaObjC/property-not-lvalue.m index 55eec3e453..3d95d2607f 100644 --- a/test/SemaObjC/property-not-lvalue.m +++ b/test/SemaObjC/property-not-lvalue.m @@ -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 -- 2.40.0