[cfe-commits] r102190 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/continuation-class-err.m

Fariborz Jahanian fjahanian at apple.com
Fri Apr 23 10:52:02 PDT 2010


Author: fjahanian
Date: Fri Apr 23 12:52:02 2010
New Revision: 102190

URL: http://llvm.org/viewvc/llvm-project?rev=102190&view=rev
Log:
Improve on my previous diagnostics: per Doug's comment.


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/test/SemaObjC/continuation-class-err.m

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=102190&r1=102189&r2=102190&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Fri Apr 23 12:52:02 2010
@@ -324,7 +324,7 @@
   "with a user defined setter/getter">;
 def err_use_continuation_class : Error<
   "illegal declaration of property in continuation class %0"
-  " - attribute must be readwrite, while its primary must be readonly">;
+  ": attribute must be readwrite, while its primary must be readonly">;
 def err_continuation_class : Error<"continuation class has no primary class">;
 def err_property_type : Error<"property cannot have array or function type %0">;
 def error_missing_property_context : Error<

Modified: cfe/trunk/test/SemaObjC/continuation-class-err.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/continuation-class-err.m?rev=102190&r1=102189&r2=102190&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/continuation-class-err.m (original)
+++ cfe/trunk/test/SemaObjC/continuation-class-err.m Fri Apr 23 12:52:02 2010
@@ -12,7 +12,7 @@
 
 @interface ReadOnly ()
 @property(readwrite, copy) id object;	// expected-warning {{property attribute in continuation class does not match the primary class}}
- at property(readonly) id object1; // expected-error {{illegal declaration of property in continuation class 'ReadOnly' - attribute must be}}
+ at property(readonly) id object1; // expected-error {{illegal declaration of property in continuation class 'ReadOnly': attribute must be}}
 @property (readwrite, assign) int indentLevel; // OK. assign the the default in any case.
 @end
 
@@ -31,8 +31,8 @@
 @end
 
 @interface Bar ()
- at property (copy) id foo;	// expected-error {{illegal declaration of property in continuation class 'Bar' - attribute must be}}
- at property (copy) id fee;	// expected-error {{illegal declaration of property in continuation class 'Bar' - attribute must be}}
+ at property (copy) id foo;	// expected-error {{illegal declaration of property in continuation class 'Bar': attribute must be}}
+ at property (copy) id fee;	// expected-error {{illegal declaration of property in continuation class 'Bar': attribute must be}}
 @end
 
 @implementation Bar





More information about the cfe-commits mailing list