[Lldb-commits] [PATCH] D12517: [lldb-mi] Use find, not find_first_of, for "--".
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 31 21:38:06 PDT 2015
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12517.33663.patch
Type: text/x-patch
Size: 1004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150901/d7e7ef99/attachment.bin>
More information about the lldb-commits
mailing list