diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-20 23:18:57 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-06-20 23:18:57 +0000 |
commit | c78ff27813288b30ee566477705353ae660fd577 (patch) | |
tree | d7dc0dbe15aebdf1a02532af9ca1d4ed9e6d0c75 /lib/Sema/SemaObjCProperty.cpp | |
parent | cea06d26b8f3a2599bba79f7e072b7550de949a7 (diff) |
objc: tweak my last patch to warn if class extension
has not overridden the property. // rdar://11656982
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 32fbb0432a..13350eaf37 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -612,7 +612,6 @@ DiagnoseClassAndClassExtPropertyMismatch(Sema &S, ObjCInterfaceDecl *ClassDecl, bool warn = (Attributes & ObjCDeclSpec::DQ_PR_readonly); for (const ObjCCategoryDecl *CDecl = ClassDecl->getFirstClassExtension(); CDecl; CDecl = CDecl->getNextClassExtension()) { - warn = false; ObjCPropertyDecl *ClassExtProperty = 0; for (ObjCContainerDecl::prop_iterator P = CDecl->prop_begin(), E = CDecl->prop_end(); P != E; ++P) { @@ -622,6 +621,7 @@ DiagnoseClassAndClassExtPropertyMismatch(Sema &S, ObjCInterfaceDecl *ClassDecl, } } if (ClassExtProperty) { + warn = false; unsigned classExtPropertyAttr = ClassExtProperty->getPropertyAttributesAsWritten(); // We are issuing the warning that we postponed because class extensions |