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 | 914faaf78aa749ea37c214b678dc0383b5ff5977 (patch) | |
| tree | 1d27b94aae7a3f956a9d2dab8aadb31fc5cdad76 /clang/lib | |
| parent | 642371724ecc4c7448d4fd60a224db7eab9b7a0a (diff) | |
| download | bcm5719-llvm-914faaf78aa749ea37c214b678dc0383b5ff5977.tar.gz bcm5719-llvm-914faaf78aa749ea37c214b678dc0383b5ff5977.zip | |
objc: tweak my last patch to warn if class extension
has not overridden the property. // rdar://11656982
llvm-svn: 158871
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index 32fbb0432ad..13350eaf37c 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/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 |

