summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-13 16:51:27 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-13 16:51:27 +0000
commit2a4bd6d189eea393e5d7ca64376a78ab676d9fa9 (patch)
tree26726d586dfac725014dc8dc0756dc5de4e959a3 /clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
parentd285c503903909a64eeb3846e9586f55789b5bc4 (diff)
downloadbcm5719-llvm-2a4bd6d189eea393e5d7ca64376a78ab676d9fa9.tar.gz
bcm5719-llvm-2a4bd6d189eea393e5d7ca64376a78ab676d9fa9.zip
[C++11] Replacing CXXRecordDecl iterators ctor_begin() and ctor_end() with iterator_range ctors(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203814
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
index 800d7c439c8..9b5c8529df4 100644
--- a/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
@@ -216,8 +216,7 @@ public:
WalkAST walker(this, BR, mgr.getAnalysisDeclContext(RD));
// Check the constructors.
- for (CXXRecordDecl::ctor_iterator I = RD->ctor_begin(), E = RD->ctor_end();
- I != E; ++I) {
+ for (const auto *I : RD->ctors()) {
if (!I->isCopyOrMoveConstructor())
if (Stmt *Body = I->getBody()) {
walker.Visit(Body);
OpenPOWER on IntegriCloud