forked from OSchip/llvm-project
ClangASTContext::GetIndexOfChildWithName - increment the child index we plan to return as we iterate through the ivars.
<rdar://problem/12433299> llvm-svn: 165264
This commit is contained in:
parent
45bb8855e0
commit
2f355a7fca
|
@ -4771,7 +4771,7 @@ ClangASTContext::GetIndexOfChildWithName
|
||||||
ObjCInterfaceDecl::ivar_iterator ivar_pos, ivar_end = class_interface_decl->ivar_end();
|
ObjCInterfaceDecl::ivar_iterator ivar_pos, ivar_end = class_interface_decl->ivar_end();
|
||||||
ObjCInterfaceDecl *superclass_interface_decl = class_interface_decl->getSuperClass();
|
ObjCInterfaceDecl *superclass_interface_decl = class_interface_decl->getSuperClass();
|
||||||
|
|
||||||
for (ivar_pos = class_interface_decl->ivar_begin(); ivar_pos != ivar_end; ++ivar_pos)
|
for (ivar_pos = class_interface_decl->ivar_begin(); ivar_pos != ivar_end; ++ivar_pos, ++child_idx)
|
||||||
{
|
{
|
||||||
const ObjCIvarDecl* ivar_decl = *ivar_pos;
|
const ObjCIvarDecl* ivar_decl = *ivar_pos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue