[cfe-commits] [PATCH] Add const overload for ObjCInterfaceDecl::all_declared_ivar_begin

Jordy Rose jediknil at belkadan.com
Thu Jul 21 00:28:09 PDT 2011


Currently clients of ObjCInterfaceDecl::all_declared_ivar_begin have to const_cast the Decl to mutable, since the ivar chain is generated lazily. This patch adds a const overload (which just calls the non-const version), then goes and strips out all the const_casts. There's a slight constification fallout as well but nothing major.

Don't think this'll be controversial, but hoping for a quick review to check that I didn't do anything stupid.

Jordy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: all_declared_ivar_begin.patch
Type: application/octet-stream
Size: 15543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110721/13ad08fb/attachment.obj>


More information about the cfe-commits mailing list