Skip to content

Commit b418937

Browse files
committed
NFC: Replace iterator loop with cxx_range_for
llvm-svn: 351268
1 parent 7a16862 commit b418937

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/AST/ASTDumper.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,8 @@ void ASTDumper::VisitFunctionDecl(const FunctionDecl *D) {
623623
dumpDecl(Parameter);
624624

625625
if (const CXXConstructorDecl *C = dyn_cast<CXXConstructorDecl>(D))
626-
for (CXXConstructorDecl::init_const_iterator I = C->init_begin(),
627-
E = C->init_end();
628-
I != E; ++I)
629-
dumpCXXCtorInitializer(*I);
626+
for (const auto *I : C->inits())
627+
dumpCXXCtorInitializer(I);
630628

631629
if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D)) {
632630
if (MD->size_overridden_methods() != 0) {

0 commit comments

Comments
 (0)