diff options
Diffstat (limited to 'clang-query/tool/ClangQuery.cpp')
-rw-r--r-- | clang-query/tool/ClangQuery.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang-query/tool/ClangQuery.cpp b/clang-query/tool/ClangQuery.cpp index 990b82b3..669dc40e 100644 --- a/clang-query/tool/ClangQuery.cpp +++ b/clang-query/tool/ClangQuery.cpp @@ -77,17 +77,13 @@ int main(int argc, const char **argv) { QuerySession QS(ASTs); if (!Commands.empty()) { - for (cl::list<std::string>::iterator I = Commands.begin(), - E = Commands.end(); - I != E; ++I) { + for (auto I = Commands.begin(), E = Commands.end(); I != E; ++I) { QueryRef Q = QueryParser::parse(*I, QS); if (!Q->run(llvm::outs(), QS)) return 1; } } else if (!CommandFiles.empty()) { - for (cl::list<std::string>::iterator I = CommandFiles.begin(), - E = CommandFiles.end(); - I != E; ++I) { + for (auto I = CommandFiles.begin(), E = CommandFiles.end(); I != E; ++I) { std::ifstream Input(I->c_str()); if (!Input.is_open()) { llvm::errs() << argv[0] << ": cannot open " << *I << "\n"; |