diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 16:36:16 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 16:36:16 +0000 |
commit | 2b124d1a5d4c6df95783232a7d8955629453905a (patch) | |
tree | fe5aa5a83372163d7aace20c37847569c6236a47 /clang/lib/AST/CXXInheritance.cpp | |
parent | 0c9de71eca92df149c51fbd824178230edb99881 (diff) | |
download | bcm5719-llvm-2b124d1a5d4c6df95783232a7d8955629453905a.tar.gz bcm5719-llvm-2b124d1a5d4c6df95783232a7d8955629453905a.zip |
[C++11] Replacing CXXRecordDecl iterators method_begin() and method_end() with iterator_range methods(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203812
Diffstat (limited to 'clang/lib/AST/CXXInheritance.cpp')
-rw-r--r-- | clang/lib/AST/CXXInheritance.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/AST/CXXInheritance.cpp b/clang/lib/AST/CXXInheritance.cpp index 0f277b134ac..98bfb81f873 100644 --- a/clang/lib/AST/CXXInheritance.cpp +++ b/clang/lib/AST/CXXInheritance.cpp @@ -546,10 +546,7 @@ void FinalOverriderCollector::Collect(const CXXRecordDecl *RD, } } - for (CXXRecordDecl::method_iterator M = RD->method_begin(), - MEnd = RD->method_end(); - M != MEnd; - ++M) { + for (auto *M : RD->methods()) { // We only care about virtual methods. if (!M->isVirtual()) continue; |