]> granicus.if.org Git - clang/commit
Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin.
authorJordy Rose <jediknil@belkadan.com>
Fri, 22 Jul 2011 02:08:32 +0000 (02:08 +0000)
committerJordy Rose <jediknil@belkadan.com>
Fri, 22 Jul 2011 02:08:32 +0000 (02:08 +0000)
commitdb8264e4c5ffd7af6fbad4ca4306bd382bb02691
tree51952881a328e6fe048573df4968254aec9e4595
parent527eec86ce96695a7198073e574bf4a184848d24
Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin.
This was previously not-const only because it has to lazily construct a chain
of ivars the first time it is called (and after the chain is invalidated).
In practice, all the clients were just const_casting their const Decls;
all those now-unnecessary const_casts have been removed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135741 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/AST/DeclObjC.h
lib/AST/ASTContext.cpp
lib/AST/RecordLayoutBuilder.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCGNU.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CGObjCRuntime.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Sema/SemaDeclObjC.cpp