diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 15:12:56 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 15:12:56 +0000 |
commit | 126b7b996cc7254f5b0c2872734a7d17ebebfacd (patch) | |
tree | 05ece02e2166614529ba3454e13e0e898e111384 /lib/Frontend/ASTConsumers.cpp | |
parent | d8687808c9229aad62a86bfb523456605fa6a580 (diff) |
[C++11] Replacing FunctionDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTConsumers.cpp')
-rw-r--r-- | lib/Frontend/ASTConsumers.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Frontend/ASTConsumers.cpp b/lib/Frontend/ASTConsumers.cpp index 1ef4c18681..44a84f70e8 100644 --- a/lib/Frontend/ASTConsumers.cpp +++ b/lib/Frontend/ASTConsumers.cpp @@ -259,13 +259,12 @@ void DeclContextPrinter::PrintDeclContext(const DeclContext* DC, // Print the parameters. Out << "("; bool PrintComma = false; - for (FunctionDecl::param_const_iterator I = FD->param_begin(), - E = FD->param_end(); I != E; ++I) { + for (auto I : FD->params()) { if (PrintComma) Out << ", "; else PrintComma = true; - Out << **I; + Out << *I; } Out << ")"; break; |