diff options
author | Kazu Hirata <kazu@google.com> | 2023-12-16 14:39:37 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-12-16 14:39:37 -0800 |
commit | 744f38913fa380580431df0ae89ef5fb3df30240 (patch) | |
tree | 538d4e6bc7bf3d7c8d69232316ff89b82e1a2d7a /lldb/source/Commands/CommandObjectMemory.cpp | |
parent | 01c8af573961c54f0d922c3f3acffa880a0a459c (diff) | |
download | llvm-744f38913fa380580431df0ae89ef5fb3df30240.zip llvm-744f38913fa380580431df0ae89ef5fb3df30240.tar.gz llvm-744f38913fa380580431df0ae89ef5fb3df30240.tar.bz2 |
[lldb] Use StringRef::{starts,ends}_with (NFC)
This patch replaces uses of StringRef::{starts,ends}with with
StringRef::{starts,ends}_with for consistency with
std::{string,string_view}::{starts,ends}_with in C++20.
I'm planning to deprecate and eventually remove
StringRef::{starts,ends}with.
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 4ecac73..b78a049 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -1421,7 +1421,7 @@ protected: // Be careful, getAsInteger with a radix of 16 rejects "0xab" so we // have to special case that: bool success = false; - if (entry.ref().startswith("0x")) + if (entry.ref().starts_with("0x")) success = !entry.ref().getAsInteger(0, uval64); if (!success) success = !entry.ref().getAsInteger(16, uval64); |