diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2014-07-28 16:35:45 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-07-28 16:35:45 +0000 |
| commit | 261aa1f23abda9a05d04968b171ebbd8f3eec257 (patch) | |
| tree | 874ddcf8afd4237823e8fda36d202ebe298b3828 | |
| parent | ea1f83385fab96b5274fb60402e7ce6d0925a2f8 (diff) | |
| download | bcm5719-llvm-261aa1f23abda9a05d04968b171ebbd8f3eec257.tar.gz bcm5719-llvm-261aa1f23abda9a05d04968b171ebbd8f3eec257.zip | |
Objective-C. Improve diagnostic when property is
not auto synthesized in current implementation.
rdar://17774815
llvm-svn: 214090
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 | ||||
| -rw-r--r-- | clang/test/SemaObjC/attr-deprecated.m | 2 | ||||
| -rw-r--r-- | clang/test/SemaObjC/default-synthesize-1.m | 2 | ||||
| -rw-r--r-- | clang/test/SemaObjC/default-synthesize.m | 2 | ||||
| -rw-r--r-- | clang/test/SemaObjC/protocols-suppress-conformance.m | 2 | ||||
| -rw-r--r-- | clang/test/SemaObjC/super-property-notation.m | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 3a8365243f7..7e515960cf9 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -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 " diff --git a/clang/test/SemaObjC/attr-deprecated.m b/clang/test/SemaObjC/attr-deprecated.m index f18f99f013b..9c33b5bade9 100644 --- a/clang/test/SemaObjC/attr-deprecated.m +++ b/clang/test/SemaObjC/attr-deprecated.m @@ -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 diff --git a/clang/test/SemaObjC/default-synthesize-1.m b/clang/test/SemaObjC/default-synthesize-1.m index 31dd6694053..3ca34e027cb 100644 --- a/clang/test/SemaObjC/default-synthesize-1.m +++ b/clang/test/SemaObjC/default-synthesize-1.m @@ -132,7 +132,7 @@ @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 diff --git a/clang/test/SemaObjC/default-synthesize.m b/clang/test/SemaObjC/default-synthesize.m index a3abe2eca8f..4865668af38 100644 --- a/clang/test/SemaObjC/default-synthesize.m +++ b/clang/test/SemaObjC/default-synthesize.m @@ -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> diff --git a/clang/test/SemaObjC/protocols-suppress-conformance.m b/clang/test/SemaObjC/protocols-suppress-conformance.m index dffa6c22352..855d2e96ef6 100644 --- a/clang/test/SemaObjC/protocols-suppress-conformance.m +++ b/clang/test/SemaObjC/protocols-suppress-conformance.m @@ -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 diff --git a/clang/test/SemaObjC/super-property-notation.m b/clang/test/SemaObjC/super-property-notation.m index 0f90f617c62..7cefe09b1e7 100644 --- a/clang/test/SemaObjC/super-property-notation.m +++ b/clang/test/SemaObjC/super-property-notation.m @@ -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}} |

