[cfe-commits] [PATCH] Add const overload for ObjCInterfaceDecl::all_declared_ivar_begin
Douglas Gregor
dgregor at apple.com
Thu Jul 21 07:44:39 PDT 2011
On Jul 21, 2011, at 12:28 AM, Jordy Rose wrote:
> 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.
Looks good to me.
- Doug
More information about the cfe-commits
mailing list