This revision was automatically updated to reflect the committed changes. Closed by commit rL285731: [clang-query] Fix Clang-tidy readability-redundant-string-cstr warnings (authored by malcolm.parsons).
Changed prior to commit: https://reviews.llvm.org/D26205?vs=76597&id=76622#toc Repository: rL LLVM https://reviews.llvm.org/D26205 Files: clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp 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<std::string>::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; }
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<std::string>::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; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits