]> granicus.if.org Git - clang/commit
[Sema] Prefer to use ObjCInterfaceDecl's protocol_begin()/protocol_end() iterators...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Mar 2012 01:09:41 +0000 (01:09 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 13 Mar 2012 01:09:41 +0000 (01:09 +0000)
commita5f4441de7890953460d95f4e88b9fa432b48dc2
treeaafaf87f8cfcbeea81609da726361d694cc04a7f
parentcd707abbc758149d9f7d37bd0b25298455c678b2
[Sema] Prefer to use ObjCInterfaceDecl's protocol_begin()/protocol_end() iterators instead of
ObjCInterfaceDecl::getReferencedProtocols(), because the iterators are safe to use
even if the caller did not check that the interface is a definition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152597 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
lib/AST/DeclObjC.cpp
lib/CodeGen/CGObjCGNU.cpp
lib/Rewrite/RewriteModernObjC.cpp
lib/Sema/SemaCodeComplete.cpp