diff options
| author | Stephen Kelly <steveire@gmail.com> | 2019-01-15 22:45:46 +0000 |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2019-01-15 22:45:46 +0000 |
| commit | b418937793e81fc7541ce2eb322611ce40d43b3e (patch) | |
| tree | 8a99f67d962dba1fb7c1967bfe4793f2ef2ed5ed /clang/lib | |
| parent | 7a16862745773a258225c0249fb10bd6e306b572 (diff) | |
| download | bcm5719-llvm-b418937793e81fc7541ce2eb322611ce40d43b3e.tar.gz bcm5719-llvm-b418937793e81fc7541ce2eb322611ce40d43b3e.zip | |
NFC: Replace iterator loop with cxx_range_for
llvm-svn: 351268
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/ASTDumper.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index 852b7289760..bd7571b5366 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -623,10 +623,8 @@ void ASTDumper::VisitFunctionDecl(const FunctionDecl *D) { dumpDecl(Parameter); if (const CXXConstructorDecl *C = dyn_cast<CXXConstructorDecl>(D)) - for (CXXConstructorDecl::init_const_iterator I = C->init_begin(), - E = C->init_end(); - I != E; ++I) - dumpCXXCtorInitializer(*I); + for (const auto *I : C->inits()) + dumpCXXCtorInitializer(I); if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D)) { if (MD->size_overridden_methods() != 0) { |

