]> granicus.if.org Git - clang/commitdiff
Objective-C. Improve diagnostic when property is
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 28 Jul 2014 16:35:45 +0000 (16:35 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 28 Jul 2014 16:35:45 +0000 (16:35 +0000)
not auto synthesized in current implementation.
rdar://17774815

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

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjC/attr-deprecated.m
test/SemaObjC/default-synthesize-1.m
test/SemaObjC/default-synthesize.m
test/SemaObjC/protocols-suppress-conformance.m
test/SemaObjC/super-property-notation.m

index 3a8365243f7ab1d57ee3bbaaa2313ad9031cc3f6..7e515960cf97d1a755ce2d78d4d8fa27bd22f70d 100644 (file)
@@ -785,7 +785,7 @@ def warn_no_autosynthesis_property : Warning<
   InGroup<ObjCNoPropertyAutoSynthesis>;
 def warn_autosynthesis_property_in_superclass : Warning<
   "auto property synthesis will not synthesize property "
-  "%0 because it will be synthesize by its super class">,
+  "%0 because it will be implemented by its superclass">,
   InGroup<ObjCNoPropertyAutoSynthesis>;
 def warn_autosynthesis_property_ivar_match :Warning<
   "autosynthesized property %0 will use %select{|synthesized}1 instance variable "
index f18f99f013bde849a53ff56c4216cb4e753fc452..9c33b5bade9500e5dfc06c54902cca037b1ce37d 100644 (file)
@@ -201,7 +201,7 @@ expected-note {{'setObject:' has been explicitly marked deprecated here}}
 @end
 
 @interface TestDerived : TestBase
-@property (nonatomic, strong) id object; //expected-warning {{auto property synthesis will not synthesize property 'object' because it will be synthesize by its super class}}
+@property (nonatomic, strong) id object; //expected-warning {{auto property synthesis will not synthesize property 'object' because it will be implemented by its superclass}}
 @end
 
 @interface TestUse @end
index 31dd66940536185778798287873d22dcbbc071c8..3ca34e027cbb4561144d434ee00389904a9d0309 100644 (file)
 
 @interface ZXCalendarParsedResult : ZXParsedResult
 
-@property (nonatomic, copy, readonly) NSString *description; // expected-warning {{auto property synthesis will not synthesize property 'description' because it will be synthesize by its super class}}
+@property (nonatomic, copy, readonly) NSString *description; // expected-warning {{auto property synthesis will not synthesize property 'description' because it will be implemented by its superclass}}
 
 @end
 
index a3abe2eca8ffa268c21d954c472da93b151fa62c..4865668af38b05d855ee4ae9d7d129d61964d72f 100644 (file)
@@ -88,7 +88,7 @@
 @end
 
 @protocol TopProtocol
-  @property (readonly) id myString; // expected-warning {{auto property synthesis will not synthesize property 'myString' because it will be synthesize by its super class}}
+  @property (readonly) id myString; // expected-warning {{auto property synthesis will not synthesize property 'myString' because it will be implemented by its superclass}}
 @end
 
 @interface TopClass <TopProtocol> 
index dffa6c22352c4ad6670205928e071f5a1f87cce4..855d2e96ef659b47e9e9bcbc5270bd183d8e9c3e 100644 (file)
@@ -34,7 +34,7 @@ __attribute__((objc_protocol_requires_explicit_implementation))
 @end
 
 @interface ClassB_AlsoGood : ClassA <Protocol>
-@property (readonly) id theWorstOfTimes; // expected-warning {{auto property synthesis will not synthesize property 'theWorstOfTimes' because it will be synthesize by its super class}}
+@property (readonly) id theWorstOfTimes; // expected-warning {{auto property synthesis will not synthesize property 'theWorstOfTimes' because it will be implemented by its superclass}}
 @end
 
 // Default synthesis acts as if @dynamic
index 0f90f617c6240c794eef24a7f01635bd5507b94e..7cefe09b1e7ae4d7c1ba24b818c488b08064f2dc 100644 (file)
@@ -41,7 +41,7 @@ __attribute__((objc_root_class)) @interface ClassBase
 @end
 
 @interface ClassDerived : ClassBase 
-@property (nonatomic, retain) ClassDerived * foo; // expected-warning {{auto property synthesis will not synthesize property 'foo' because it will be synthesize by its super class}}
+@property (nonatomic, retain) ClassDerived * foo; // expected-warning {{auto property synthesis will not synthesize property 'foo' because it will be implemented by its superclass}}
 @end
 
 @implementation ClassDerived // expected-note {{detected while default synthesizing properties in class implementation}}