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/CommandObjectCommands.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/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 74d97b0..5b9af4a 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -411,7 +411,7 @@ protected: // Get the alias command. auto alias_command = args[0].ref(); - if (alias_command.startswith("-")) { + if (alias_command.starts_with("-")) { result.AppendError("aliases starting with a dash are not supported"); if (alias_command == "--help" || alias_command == "--long-help") { result.AppendWarning("if trying to pass options to 'command alias' add " |