summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-10-10 22:08:23 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-10-10 22:08:23 +0000
commitc985a7f6df374f0b6a31f8415002d18e9638db60 (patch)
treeb8d977c8aa5bc2f23801d2354b2218a9663d252e /clang/lib/Sema
parent8a584bb3d7a0c4cc15f1cf4a457f30ba96e355f8 (diff)
downloadbcm5719-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.cpp1
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;
OpenPOWER on IntegriCloud