diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-25 15:21:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-25 15:21:43 +0000 |
commit | 055682d478d6a37f84d55ad79d83b3c4db3e0083 (patch) | |
tree | 206e4c8b587ce674476c4375ed13e9aa088ca226 /clang-query | |
parent | a450a7dcb172aca80db670140cac40d6dfcf9b1b (diff) |
Slightly less blindly fixing clang-tools-extra now that I remember that the "check-clang" target doesn't check clang-tools-extra
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-query')
-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; |