aboutsummaryrefslogtreecommitdiff
path: root/clang-query/Query.cpp
diff options
context:
space:
mode:
authorPiotr Padlewski <piotr.padlewski@gmail.com>2016-12-14 15:29:23 +0000
committerPiotr Padlewski <piotr.padlewski@gmail.com>2016-12-14 15:29:23 +0000
commit2cd835ee5bcd6c4944d7e30826668ec38db40b38 (patch)
tree2bc808fbc178d42948b8ae138e1ee3d696ec6c8b /clang-query/Query.cpp
parent0d8381bb69ca54a450b730ff3ee59133ecd0d09a (diff)
modernize-use-auto NFC fixes
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@289656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-query/Query.cpp')
-rw-r--r--clang-query/Query.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang-query/Query.cpp b/clang-query/Query.cpp
index ed27c211..b3344dad 100644
--- a/clang-query/Query.cpp
+++ b/clang-query/Query.cpp
@@ -86,14 +86,11 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
}
Finder.matchAST(AST->getASTContext());
- for (std::vector<BoundNodes>::iterator MI = Matches.begin(),
- ME = Matches.end();
- MI != ME; ++MI) {
+ for (auto MI = Matches.begin(), ME = Matches.end(); MI != ME; ++MI) {
OS << "\nMatch #" << ++MatchCount << ":\n\n";
- for (BoundNodes::IDToNodeMap::const_iterator BI = MI->getMap().begin(),
- BE = MI->getMap().end();
- BI != BE; ++BI) {
+ for (auto BI = MI->getMap().begin(), BE = MI->getMap().end(); BI != BE;
+ ++BI) {
switch (QS.OutKind) {
case OK_Diag: {
clang::SourceRange R = BI->second.getSourceRange();