diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:55:35 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:55:35 +0000 |
commit | 714b9962604d459f04758b88bd45a4f708b6f130 (patch) | |
tree | b545ca13fe997aadfa15f35b70cec5b625659263 /lib/Serialization/ASTWriterDecl.cpp | |
parent | e385112444b7202cc7869825eb66efb6fed70940 (diff) | |
download | clang-714b9962604d459f04758b88bd45a4f708b6f130.tar.gz |
[C++11] Replacing OMPThreadPrivateDecl and OMPClause iterators varlist_begin() and varlist_end() with iterator_range varlists(). Updating all of the usages of the iterators with range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTWriterDecl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 0d679802ed..ba5e62a853 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/lib/Serialization/ASTWriterDecl.cpp @@ -1415,10 +1415,8 @@ void ASTDeclWriter::VisitRedeclarable(Redeclarable<T> *D) { void ASTDeclWriter::VisitOMPThreadPrivateDecl(OMPThreadPrivateDecl *D) { Record.push_back(D->varlist_size()); VisitDecl(D); - for (OMPThreadPrivateDecl::varlist_iterator I = D->varlist_begin(), - E = D->varlist_end(); - I != E; ++I) - Writer.AddStmt(*I); + for (auto *I : D->varlists()) + Writer.AddStmt(I); Code = serialization::DECL_OMP_THREADPRIVATE; } |