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 | 6f785b5fd0050ffcb9a6fcbb3b6acd75f00fff90 (patch) | |
tree | f26059f172c4557ac81134f64ed9302154a0e0c6 | |
parent | 0263747edc9ec15228fa5d1ed55ebc626ccc244c (diff) |
NFC: Replace iterator loop with cxx_range_for
-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) { |