diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 17:34:31 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 17:34:31 +0000 |
commit | 0ad78303decbdce1c35a7082de91ec6263f970be (patch) | |
tree | 9f559a314e9c58e237195753e22759e6389ce786 /clang/tools/libclang/IndexDecl.cpp | |
parent | 08ef1233c694cefec755f31a67e50b9916290a18 (diff) | |
download | bcm5719-llvm-0ad78303decbdce1c35a7082de91ec6263f970be.tar.gz bcm5719-llvm-0ad78303decbdce1c35a7082de91ec6263f970be.zip |
[C++11] Replacing CXXRecordDecl iterators init_begin() and init_end() with iterator_range inits(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203819
Diffstat (limited to 'clang/tools/libclang/IndexDecl.cpp')
-rw-r--r-- | clang/tools/libclang/IndexDecl.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/tools/libclang/IndexDecl.cpp b/clang/tools/libclang/IndexDecl.cpp index fbcd2d07a93..a8911f14148 100644 --- a/clang/tools/libclang/IndexDecl.cpp +++ b/clang/tools/libclang/IndexDecl.cpp @@ -71,10 +71,7 @@ public: if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) { // Constructor initializers. - for (CXXConstructorDecl::init_const_iterator I = Ctor->init_begin(), - E = Ctor->init_end(); - I != E; ++I) { - CXXCtorInitializer *Init = *I; + for (const auto *Init : Ctor->inits()) { if (Init->isWritten()) { IndexCtx.indexTypeSourceInfo(Init->getTypeSourceInfo(), D); if (const FieldDecl *Member = Init->getAnyMember()) |