diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 17:01:24 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 17:01:24 +0000 |
| commit | 47aa3ca54bb0e2103306fda97af0de9a7efa5012 (patch) | |
| tree | 128f80273edc0f256409ac941c590fd2356eb85d /lib/CodeGen/CGStmt.cpp | |
| parent | 7f99d73c9fffc86a626a576656909f0bd2a2ffd2 (diff) | |
| download | clang-47aa3ca54bb0e2103306fda97af0de9a7efa5012.tar.gz clang-47aa3ca54bb0e2103306fda97af0de9a7efa5012.tar.bz2 clang-47aa3ca54bb0e2103306fda97af0de9a7efa5012.tar.xz | |
[C++11] Replacing DeclStmt iterators decl_begin() and decl_end() with iterator_range decls(). Updating all of the usages of the iterators with range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
| -rw-r--r-- | lib/CodeGen/CGStmt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index d69c5cdf9e..4e95c8ad1c 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -891,9 +891,8 @@ void CodeGenFunction::EmitDeclStmt(const DeclStmt &S) { if (HaveInsertPoint()) EmitStopPoint(&S); - for (DeclStmt::const_decl_iterator I = S.decl_begin(), E = S.decl_end(); - I != E; ++I) - EmitDecl(**I); + for (const auto *I : S.decls()) + EmitDecl(*I); } void CodeGenFunction::EmitBreakStmt(const BreakStmt &S) { |
