diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 15:23:01 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 15:23:01 +0000 |
commit | 40bd0aaf686432aea96cff32d5393ec064a9dd0e (patch) | |
tree | c4af76848aebd110d674efb1a1afc3477105e01e /clang/lib/Sema/SemaTemplate.cpp | |
parent | e7846206e82d8798cb98e1f533bc9da0214adb0a (diff) | |
download | bcm5719-llvm-40bd0aaf686432aea96cff32d5393ec064a9dd0e.tar.gz bcm5719-llvm-40bd0aaf686432aea96cff32d5393ec064a9dd0e.zip |
[C++11] Replacing FunctionProtoType iterators param_type_begin() and param_type_end() with iterator_range param_types(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 204045
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index aacb0b6eead..2b88bf9bf0b 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -3912,10 +3912,8 @@ bool UnnamedLocalNoLinkageFinder::VisitExtVectorType(const ExtVectorType* T) { bool UnnamedLocalNoLinkageFinder::VisitFunctionProtoType( const FunctionProtoType* T) { - for (FunctionProtoType::param_type_iterator A = T->param_type_begin(), - AEnd = T->param_type_end(); - A != AEnd; ++A) { - if (Visit(*A)) + for (const auto &A : T->param_types()) { + if (Visit(A)) return true; } |