Replace the uses of StringConvert combined with hand-rolled array
splitting with llvm::StringRef.split() and llvm::to_integer().
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
All the llvm::StringRef & iteration variables can just be llvm::StringRef without the reference. Also some base values got lost here (see inline comments).
Beside that this LGTM, thanks!
| lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | ||
|---|---|---|
| 1667 | Base 16 arg is lost here. | |
| lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | ||
| 390 | This needs to forward the base arg (there are some callers that seem to parse hex). | |
| 1464 | base 16 lost here. | |
| lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | ||
|---|---|---|
| 1667 | Good catch, thanks. | |
| lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | ||
|---|---|---|
| 1667 | Actually, scratch that. The values here include 0x prefix. and apparently llvm::to_integer() handles that correctly only if base isn't specified. Though it might be reasonable to fix llvm::to_integer() to allow matching prefix, I guess. | |
Base 16 arg is lost here.