Index: clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp =================================================================== --- clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp +++ clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp @@ -80,7 +80,7 @@ for (cl::list::iterator I = Commands.begin(), E = Commands.end(); I != E; ++I) { - QueryRef Q = QueryParser::parse(I->c_str(), QS); + QueryRef Q = QueryParser::parse(*I, QS); if (!Q->run(llvm::outs(), QS)) return 1; } @@ -97,7 +97,7 @@ std::string Line; std::getline(Input, Line); - QueryRef Q = QueryParser::parse(Line.c_str(), QS); + QueryRef Q = QueryParser::parse(Line, QS); if (!Q->run(llvm::outs(), QS)) return 1; }