diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2014-10-10 22:08:23 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-10-10 22:08:23 +0000 |
| commit | c985a7f6df374f0b6a31f8415002d18e9638db60 (patch) | |
| tree | b8d977c8aa5bc2f23801d2354b2218a9663d252e /clang/lib/Sema | |
| parent | 8a584bb3d7a0c4cc15f1cf4a457f30ba96e355f8 (diff) | |
| download | bcm5719-llvm-c985a7f6df374f0b6a31f8415002d18e9638db60.tar.gz bcm5719-llvm-c985a7f6df374f0b6a31f8415002d18e9638db60.zip | |
Objective-C [qoi]. When reporting that a property is not
auto synthesized because it is synthesized in its super
class. locate property declaration in super class
which will default synthesize the property. rdar://18488727
llvm-svn: 219535
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index cf9010f7fe0..48aa18cd307 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -1584,6 +1584,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, ObjCImplDecl* IMPDecl, else { Diag(Prop->getLocation(), diag::warn_autosynthesis_property_in_superclass) << Prop->getIdentifier(); + Diag(PropInSuperClass->getLocation(), diag::note_property_declare); Diag(IMPDecl->getLocation(), diag::note_while_in_implementation); } continue; |

