diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 14:19:37 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 14:19:37 +0000 |
| commit | c7e4e219b500d84eb5032afb0d0fde5db335d1e8 (patch) | |
| tree | 5063b67f2bcd5fb782384842a9c2576cb676f189 /clang/lib/Serialization/ASTWriterStmt.cpp | |
| parent | a0eb97a50b40ac96cd79298a0fd132fd267339fb (diff) | |
| download | bcm5719-llvm-c7e4e219b500d84eb5032afb0d0fde5db335d1e8.tar.gz bcm5719-llvm-c7e4e219b500d84eb5032afb0d0fde5db335d1e8.zip | |
[C++11] Replacing CompoundStmt iterators body_begin() and body_end() with iterator_range body(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 204040
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
| -rw-r--r-- | clang/lib/Serialization/ASTWriterStmt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp index 05cbb5bd488..c55f0bca82b 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/lib/Serialization/ASTWriterStmt.cpp @@ -71,9 +71,8 @@ void ASTStmtWriter::VisitNullStmt(NullStmt *S) { void ASTStmtWriter::VisitCompoundStmt(CompoundStmt *S) { VisitStmt(S); Record.push_back(S->size()); - for (CompoundStmt::body_iterator CS = S->body_begin(), CSEnd = S->body_end(); - CS != CSEnd; ++CS) - Writer.AddStmt(*CS); + for (auto *CS : S->body()) + Writer.AddStmt(CS); Writer.AddSourceLocation(S->getLBracLoc(), Record); Writer.AddSourceLocation(S->getRBracLoc(), Record); Code = serialization::STMT_COMPOUND; |

