]> granicus.if.org Git - clang/commit
simplify the way ObjCCategoryDecl's get their referenced protocols list
authorChris Lattner <sabre@nondot.org>
Sun, 16 Mar 2008 20:47:45 +0000 (20:47 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Mar 2008 20:47:45 +0000 (20:47 +0000)
commit68c82cf61228102aba1194efef222fa1478af2a8
tree494b30fcfa056a98dd5c9958661d1529da69fc9e
parent61f9d41036e30ff80130f99b31c0626e3ef057cc
simplify the way ObjCCategoryDecl's get their referenced protocols list
specified.  Previously, the ctor would allocate memory for the list and then
it would get filled in later.  Move the allocation+filling in to be more
consistent with other stuff, e.g. the addMethods method.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48427 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
lib/AST/DeclObjC.cpp
lib/Sema/SemaDeclObjC.cpp