r350984 - NFC: Port loop to cxx_range_for
Stephen Kelly via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 11 16:42:59 PST 2019
Author: steveire
Date: Fri Jan 11 16:42:59 2019
New Revision: 350984
URL: http://llvm.org/viewvc/llvm-project?rev=350984&view=rev
Log:
NFC: Port loop to cxx_range_for
Modified:
cfe/trunk/lib/AST/ASTDumper.cpp
Modified: cfe/trunk/lib/AST/ASTDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDumper.cpp?rev=350984&r1=350983&r2=350984&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDumper.cpp (original)
+++ cfe/trunk/lib/AST/ASTDumper.cpp Fri Jan 11 16:42:59 2019
@@ -709,9 +709,8 @@ void ASTDumper::dumpTemplateArgument(con
break;
case TemplateArgument::Pack:
OS << " pack";
- for (TemplateArgument::pack_iterator I = A.pack_begin(), E = A.pack_end();
- I != E; ++I)
- dumpTemplateArgument(*I);
+ for (const auto& TArg : A.pack_elements())
+ dumpTemplateArgument(TArg);
break;
}
});
More information about the cfe-commits
mailing list