diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:16:45 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:16:45 +0000 |
| commit | d6d25de46e95aa8822ea0160aec38149534c447b (patch) | |
| tree | dbf8abfdc8dc6ea1d77bf90cd8b4525c9c44f2c8 /clang/tools | |
| parent | c32573b2d42e90ba90be24739946d2567ee28074 (diff) | |
| download | bcm5719-llvm-d6d25de46e95aa8822ea0160aec38149534c447b.tar.gz bcm5719-llvm-d6d25de46e95aa8822ea0160aec38149534c447b.zip | |
[C++11] Replacing ObjCImplementationDecl iterators ivar_begin() and ivar_end() with iterator_range ivars(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203932
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/libclang/IndexDecl.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/tools/libclang/IndexDecl.cpp b/clang/tools/libclang/IndexDecl.cpp index 4372ab34666..64052ed3094 100644 --- a/clang/tools/libclang/IndexDecl.cpp +++ b/clang/tools/libclang/IndexDecl.cpp @@ -165,11 +165,8 @@ public: // Index the ivars first to make sure the synthesized ivars are indexed // before indexing the methods that can reference them. - for (ObjCImplementationDecl::ivar_iterator - IvarI = D->ivar_begin(), - IvarE = D->ivar_end(); IvarI != IvarE; ++IvarI) { - IndexCtx.indexDecl(*IvarI); - } + for (const auto *IvarI : D->ivars()) + IndexCtx.indexDecl(IvarI); for (const auto *I : D->decls()) { if (!isa<ObjCIvarDecl>(I)) IndexCtx.indexDecl(I); |

