diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:55:35 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:55:35 +0000 |
commit | 2205d2a56a5f77f40c0856eef2a3325c5f78bb50 (patch) | |
tree | 8fcd571992adeacf3a3c019edb5291f849ee4547 /clang/lib/AST/StmtProfile.cpp | |
parent | fdbd8e05b2a84e27c5ee406a2f829a04be6a758c (diff) | |
download | bcm5719-llvm-2205d2a56a5f77f40c0856eef2a3325c5f78bb50.tar.gz bcm5719-llvm-2205d2a56a5f77f40c0856eef2a3325c5f78bb50.zip |
[C++11] Replacing OMPThreadPrivateDecl and OMPClause iterators varlist_begin() and varlist_end() with iterator_range varlists(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203937
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r-- | clang/lib/AST/StmtProfile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index b871ffb73b4..eeffe743b78 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -279,10 +279,8 @@ void OMPClauseProfiler::VisitOMPDefaultClause(const OMPDefaultClause *C) { } template<typename T> void OMPClauseProfiler::VisitOMPClauseList(T *Node) { - for (typename T::varlist_const_iterator I = Node->varlist_begin(), - E = Node->varlist_end(); - I != E; ++I) - Profiler->VisitStmt(*I); + for (auto *I : Node->varlists()) + Profiler->VisitStmt(I); } void OMPClauseProfiler::VisitOMPPrivateClause(const OMPPrivateClause *C) { |