summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaAccess.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-07 19:56:05 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-07 19:56:05 +0000
commit629afaefe0cd1a583ccee54918b7b13f48bfe273 (patch)
tree9a236cdf36b4b96c8aad05ccdb63d8f40f9acd9c /clang/lib/Sema/SemaAccess.cpp
parentd72a5f103da45e5abe10497308fce5aeb992cdc2 (diff)
downloadbcm5719-llvm-629afaefe0cd1a583ccee54918b7b13f48bfe273.tar.gz
bcm5719-llvm-629afaefe0cd1a583ccee54918b7b13f48bfe273.zip
[C++11] Replacing DeclBase iterators decls_begin() and decls_end() with iterator_range decls(). The same is true for the noload versions of these APIs. Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203278
Diffstat (limited to 'clang/lib/Sema/SemaAccess.cpp')
-rw-r--r--clang/lib/Sema/SemaAccess.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaAccess.cpp b/clang/lib/Sema/SemaAccess.cpp
index 66e6e644655..60c3e726e61 100644
--- a/clang/lib/Sema/SemaAccess.cpp
+++ b/clang/lib/Sema/SemaAccess.cpp
@@ -1138,11 +1138,9 @@ static void diagnoseBadDirectAccess(Sema &S,
// Check whether there's an AccessSpecDecl preceding this in the
// chain of the DeclContext.
bool isImplicit = true;
- for (CXXRecordDecl::decl_iterator
- I = DeclaringClass->decls_begin(), E = DeclaringClass->decls_end();
- I != E; ++I) {
- if (*I == ImmediateChild) break;
- if (isa<AccessSpecDecl>(*I)) {
+ for (const auto *I : DeclaringClass->decls()) {
+ if (I == ImmediateChild) break;
+ if (isa<AccessSpecDecl>(I)) {
isImplicit = false;
break;
}
OpenPOWER on IntegriCloud