diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-03 15:12:24 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-03 15:12:24 +0000 |
commit | 973431b22f081a53a6e35d9617427319ad5c8e78 (patch) | |
tree | 3610d0a1786c7a6f19f92565e11b30f5c5fe7e4f /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | e9da9aa4f386da6930dc663aaed727ce61690570 (diff) | |
download | bcm5719-llvm-973431b22f081a53a6e35d9617427319ad5c8e78.tar.gz bcm5719-llvm-973431b22f081a53a6e35d9617427319ad5c8e78.zip |
Rewrite users of Stmt::child_begin/end into for-range loops.
No functionality change intended.
llvm-svn: 241355
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index a42b4ef2dbe..e4db64fe34e 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1250,10 +1250,8 @@ static void reversePropagateIntererstingSymbols(BugReport &R, // Fall through. case Stmt::BinaryOperatorClass: case Stmt::UnaryOperatorClass: { - for (Stmt::const_child_iterator CI = Ex->child_begin(), - CE = Ex->child_end(); - CI != CE; ++CI) { - if (const Expr *child = dyn_cast_or_null<Expr>(*CI)) { + for (const Stmt *SubStmt : Ex->children()) { + if (const Expr *child = dyn_cast_or_null<Expr>(SubStmt)) { IE.insert(child); SVal ChildV = State->getSVal(child, LCtx); R.markInteresting(ChildV); |