diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 17:50:17 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 17:50:17 +0000 |
commit | 43b68bebe708fee758a3c93534118c853bb1b230 (patch) | |
tree | 54b2bb4553c87c7010656e684cf4c64a7a0ec841 /clang/lib/Serialization/ASTWriterDecl.cpp | |
parent | 6b3d6a4fe9013c3737fb3226d12cd691da05686b (diff) | |
download | bcm5719-llvm-43b68bebe708fee758a3c93534118c853bb1b230.tar.gz bcm5719-llvm-43b68bebe708fee758a3c93534118c853bb1b230.zip |
[C++11] Replacing ObjCMethodDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203255
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterDecl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index 46ec3933bf0..5609b011d39 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/lib/Serialization/ASTWriterDecl.cpp @@ -454,9 +454,8 @@ void ASTDeclWriter::VisitObjCMethodDecl(ObjCMethodDecl *D) { Writer.AddTypeSourceInfo(D->getReturnTypeSourceInfo(), Record); Writer.AddSourceLocation(D->getLocEnd(), Record); Record.push_back(D->param_size()); - for (ObjCMethodDecl::param_iterator P = D->param_begin(), - PEnd = D->param_end(); P != PEnd; ++P) - Writer.AddDeclRef(*P, Record); + for (const auto *P : D->params()) + Writer.AddDeclRef(P, Record); Record.push_back(D->SelLocsKind); unsigned NumStoredSelLocs = D->getNumStoredSelLocs(); |