summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-14 17:01:24 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-14 17:01:24 +0000
commit535bbcccb12b3a98bd53b68fef678e38814dbb0c (patch)
treed1734ec7627827f84eda60ea88c320fcc06a5d1b /clang/lib/Rewrite
parentedc1753ba342c6b9ab1f0ab9e047a9ee82b0c079 (diff)
downloadbcm5719-llvm-535bbcccb12b3a98bd53b68fef678e38814dbb0c.tar.gz
bcm5719-llvm-535bbcccb12b3a98bd53b68fef678e38814dbb0c.zip
[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.
llvm-svn: 203947
Diffstat (limited to 'clang/lib/Rewrite')
-rw-r--r--clang/lib/Rewrite/Frontend/RewriteObjC.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Rewrite/Frontend/RewriteObjC.cpp b/clang/lib/Rewrite/Frontend/RewriteObjC.cpp
index e2bbc92baaf..4cd71d89f15 100644
--- a/clang/lib/Rewrite/Frontend/RewriteObjC.cpp
+++ b/clang/lib/Rewrite/Frontend/RewriteObjC.cpp
@@ -4753,9 +4753,7 @@ Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
RewriteObjCQualifiedInterfaceTypes(*DS->decl_begin());
// Blocks rewrite rules.
- for (DeclStmt::decl_iterator DI = DS->decl_begin(), DE = DS->decl_end();
- DI != DE; ++DI) {
- Decl *SD = *DI;
+ for (auto *SD : DS->decls()) {
if (ValueDecl *ND = dyn_cast<ValueDecl>(SD)) {
if (isTopLevelBlockPointerType(ND->getType()))
RewriteBlockPointerDecl(ND);
OpenPOWER on IntegriCloud