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 | c4430a74cb88c0f0281ad6738feab20e9a7e481e (patch) | |
tree | d6a298ded863bceba15a712b723cc4895a173a7b /lib/Sema/SemaTemplate.cpp | |
parent | e544d56f34a589cd618c699cd9edc9569c85a99d (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index aacb0b6eea..2b88bf9bf0 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/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; } |