diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-06 23:45:36 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-06 23:45:36 +0000 |
commit | 86c9390673f4be9a4064b7f3aa3a25636465758c (patch) | |
tree | 41f242a1d9e359fc2c87cf3a462faa7170dabab7 /clang/lib/ARCMigrate/TransGCAttrs.cpp | |
parent | 0e4b605e475690f8899c8a8a45e25b24138d2b82 (diff) | |
download | bcm5719-llvm-86c9390673f4be9a4064b7f3aa3a25636465758c.tar.gz bcm5719-llvm-86c9390673f4be9a4064b7f3aa3a25636465758c.zip |
[C++11] Replacing iterators redecls_begin() and redecls_end() with iterator_range redecls(). Updating all of the usages of the iterators with range-based for loops, which allows the begin/end forms to be removed entirely.
llvm-svn: 203179
Diffstat (limited to 'clang/lib/ARCMigrate/TransGCAttrs.cpp')
-rw-r--r-- | clang/lib/ARCMigrate/TransGCAttrs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/ARCMigrate/TransGCAttrs.cpp b/clang/lib/ARCMigrate/TransGCAttrs.cpp index d8be1ae746a..29b849074e5 100644 --- a/clang/lib/ARCMigrate/TransGCAttrs.cpp +++ b/clang/lib/ARCMigrate/TransGCAttrs.cpp @@ -164,8 +164,7 @@ public: if (!D) return false; - for (Decl::redecl_iterator - I = D->redecls_begin(), E = D->redecls_end(); I != E; ++I) + for (auto I : D->redecls()) if (!isInMainFile(I->getLocation())) return false; |