[llvm-bugs] [Bug 45981] New: StringRef::getAsInteger doesn't support "+1"

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 18 11:49:32 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45981

            Bug ID: 45981
           Summary: StringRef::getAsInteger doesn't support "+1"
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: jingham at apple.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

(lldb) set set interpreter.expand-regex-aliases 1
(lldb) jump +1
thread jump --by +1
error: invalid line offset: '+1'.

And indeed:

(lldb) thread jump --by +1
error: invalid line offset: '+1'.

The option parser calls:

option_arg.getAsInteger(0, m_line_offset);

where m_line_offset it the storage for the integer read in.  Either
StringRef::getAsInteger should support this, or we should strip off the leading
+.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200518/f7d6a4a6/attachment.html>


More information about the llvm-bugs mailing list