diff options
Diffstat (limited to 'clang-query/Query.cpp')
-rw-r--r-- | clang-query/Query.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang-query/Query.cpp b/clang-query/Query.cpp index 65a68ede..ef29e6b4 100644 --- a/clang-query/Query.cpp +++ b/clang-query/Query.cpp @@ -59,10 +59,7 @@ struct CollectBoundNodes : MatchFinder::MatchCallback { bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { unsigned MatchCount = 0; - for (llvm::ArrayRef<ASTUnit *>::iterator I = QS.ASTs.begin(), - E = QS.ASTs.end(); - I != E; ++I) { - ASTUnit *AST = *I; + for (auto &AST : QS.ASTs) { MatchFinder Finder; std::vector<BoundNodes> Matches; DynTypedMatcher MaybeBoundMatcher = Matcher; |