diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-05 22:14:12 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-05 22:14:12 +0000 |
commit | c806b90717566229ffbaa032a05bf3aded8822a7 (patch) | |
tree | a93038697d173ad7016ad835be0d5da06a669622 /clang/lib/Sema | |
parent | 64aa24e13fbb0c4b7af17629f5ed19a1ebcc955b (diff) | |
download | bcm5719-llvm-c806b90717566229ffbaa032a05bf3aded8822a7.tar.gz bcm5719-llvm-c806b90717566229ffbaa032a05bf3aded8822a7.zip |
objective-c: Don't warn when a category does not implement a method
declared in its adopted protocol when another category declares it
because that category will implement it. // rdar://11186449
llvm-svn: 154132
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 27500fcd696..6be9c7ceeb8 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -1537,7 +1537,7 @@ void Sema::CheckProtocolMethodDefs(SourceLocation ImpLoc, // uses the protocol. if (ObjCMethodDecl *MethodInClass = IDecl->lookupInstanceMethod(method->getSelector(), - true /*noCategoryLookup*/)) + true /*shallowCategoryLookup*/)) if (C || MethodInClass->isSynthesized()) continue; unsigned DIAG = diag::warn_unimplemented_protocol_method; @@ -1561,7 +1561,7 @@ void Sema::CheckProtocolMethodDefs(SourceLocation ImpLoc, (!Super || !Super->lookupClassMethod(method->getSelector()))) { // See above comment for instance method lookups. if (C && IDecl->lookupClassMethod(method->getSelector(), - true /*noCategoryLookup*/)) + true /*shallowCategoryLookup*/)) continue; unsigned DIAG = diag::warn_unimplemented_protocol_method; if (Diags.getDiagnosticLevel(DIAG, ImpLoc) != |