This revision was automatically updated to reflect the committed changes. Closed by commit rL246529: [lldb-mi] Use find, not find_first_of, for "--". (authored by brucem).
Changed prior to commit: http://reviews.llvm.org/D12517?vs=33662&id=33663#toc Repository: rL LLVM http://reviews.llvm.org/D12517 Files: lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp lldb/trunk/tools/lldb-mi/MICmdArgValOptionLong.cpp Index: lldb/trunk/tools/lldb-mi/MICmdArgValOptionLong.cpp =================================================================== --- lldb/trunk/tools/lldb-mi/MICmdArgValOptionLong.cpp +++ lldb/trunk/tools/lldb-mi/MICmdArgValOptionLong.cpp @@ -254,7 +254,7 @@ if (bHavePosSlash || bHaveBckSlash) return false; - const size_t nPos = vrTxt.find_first_of("--"); + const size_t nPos = vrTxt.find("--"); if (nPos != 0) return false; Index: lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp =================================================================== --- lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp +++ lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp @@ -146,7 +146,7 @@ const bool bHaveBckSlash = (vrFileNamePath.find_first_of("\\") != std::string::npos); // Look for --someLongOption - size_t nPos = vrFileNamePath.find_first_of("--"); + size_t nPos = vrFileNamePath.find("--"); const bool bLong = (nPos == 0); if (bLong) return false;
Index: lldb/trunk/tools/lldb-mi/MICmdArgValOptionLong.cpp =================================================================== --- lldb/trunk/tools/lldb-mi/MICmdArgValOptionLong.cpp +++ lldb/trunk/tools/lldb-mi/MICmdArgValOptionLong.cpp @@ -254,7 +254,7 @@ if (bHavePosSlash || bHaveBckSlash) return false; - const size_t nPos = vrTxt.find_first_of("--"); + const size_t nPos = vrTxt.find("--"); if (nPos != 0) return false; Index: lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp =================================================================== --- lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp +++ lldb/trunk/tools/lldb-mi/MICmdArgValFile.cpp @@ -146,7 +146,7 @@ const bool bHaveBckSlash = (vrFileNamePath.find_first_of("\\") != std::string::npos); // Look for --someLongOption - size_t nPos = vrFileNamePath.find_first_of("--"); + size_t nPos = vrFileNamePath.find("--"); const bool bLong = (nPos == 0); if (bLong) return false;
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits