[C++11] Replacing DeclStmt iterators decl_begin() and decl_end() with iterator_range decls(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203947
This commit is contained in:
@@ -171,10 +171,9 @@ void PseudoConstantAnalysis::RunAnalysis() {
|
||||
case Stmt::DeclStmtClass: {
|
||||
const DeclStmt *DS = cast<DeclStmt>(Head);
|
||||
// Iterate over each decl and see if any of them contain reference decls
|
||||
for (DeclStmt::const_decl_iterator I = DS->decl_begin(),
|
||||
E = DS->decl_end(); I != E; ++I) {
|
||||
for (const auto *I : DS->decls()) {
|
||||
// We only care about VarDecls
|
||||
const VarDecl *VD = dyn_cast<VarDecl>(*I);
|
||||
const VarDecl *VD = dyn_cast<VarDecl>(I);
|
||||
if (!VD)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user