diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-21 18:19:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-21 18:19:38 +0000 |
commit | 3db6cae19c236fe2cef343c90105ce7cca7de965 (patch) | |
tree | f11dfa61672801a7fcafaf85b26c49d681403a2e /lib/Sema/SemaDeclObjC.cpp | |
parent | fcde95db82567564e2f9983b8d1acef99214f347 (diff) |
introduce a new ObjCList templated class and start moving
various objc lists over to it. First up, the protocol list
on ObjCInterfaceDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index ad40cbe845..5188740af6 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -653,9 +653,11 @@ void Sema::ImplMethodsVsClassMethods(ObjCImplementationDecl* IMPDecl, // Check the protocol list for unimplemented methods in the @implementation // class. - ObjCProtocolDecl** protocols = IDecl->getReferencedProtocols(); - for (unsigned i = 0; i < IDecl->getNumIntfRefProtocols(); i++) - CheckProtocolMethodDefs(IMPDecl->getLocation(), protocols[i], + const ObjCList<ObjCProtocolDecl> &Protocols = + IDecl->getReferencedProtocols(); + for (ObjCList<ObjCProtocolDecl>::iterator I = Protocols.begin(), + E = Protocols.end(); I != E; ++I) + CheckProtocolMethodDefs(IMPDecl->getLocation(), *I, IncompleteImpl, InsMap, ClsMap); } |