diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-05 21:32:49 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-05 21:32:49 +0000 |
commit | b106fc635b1523952332131785b700453a936e49 (patch) | |
tree | 20d94443fdb5fb6d8f90f37b0a15c6b01e45a926 /lib/AST/DeclObjC.cpp | |
parent | bc64bb1e55a109487ff31852deea240c555529c5 (diff) |
tweaked my last patch to 1) preserve the protocol in
extension class's protocol list so its AST is complete.
2) Because of this no need to issue warning on unimplemeted
methods coming from the extended class protocols
because warning is issued when class definition is seen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index e978a5b60f..7f38ac1d9a 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -148,15 +148,13 @@ void ObjCInterfaceDecl::mergeClassExtensionProtocolList( } if (ProtocolRefs.empty()) return; - + // Merge ProtocolRefs into class's protocol list; for (protocol_iterator p = protocol_begin(), e = protocol_end(); p != e; p++) ProtocolRefs.push_back(*p); ReferencedProtocols.Destroy(C); unsigned NumProtoRefs = ProtocolRefs.size(); setProtocolList((ObjCProtocolDecl**)&ProtocolRefs[0], NumProtoRefs, C); - // Merge ProtocolRefs into class's protocol list; - } ObjCIvarDecl *ObjCInterfaceDecl::lookupInstanceVariable(IdentifierInfo *ID, |