aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandCompletions.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-12-09 14:28:45 -0800
committerGitHub <noreply@github.com>2023-12-09 14:28:45 -0800
commitcc4ecfd68b79a44f101fe9924d088a83477797c0 (patch)
tree4d63911ccc3d757fc04a6706d6726e6ae765bd60 /lldb/source/Commands/CommandCompletions.cpp
parent5c8755f9f40e5b5f4e26a9a0fdb4993cb8a57202 (diff)
downloadllvm-cc4ecfd68b79a44f101fe9924d088a83477797c0.zip
llvm-cc4ecfd68b79a44f101fe9924d088a83477797c0.tar.gz
llvm-cc4ecfd68b79a44f101fe9924d088a83477797c0.tar.bz2
[ADT] Rename SmallString::{starts,ends}with to {starts,ends}_with (#74916)
This patch renames {starts,ends}with to {starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. Since there are only a handful of occurrences, this patch skips the deprecation phase and simply renames them.
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r--lldb/source/Commands/CommandCompletions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp
index 4d7e3d7..0b69ce0 100644
--- a/lldb/source/Commands/CommandCompletions.cpp
+++ b/lldb/source/Commands/CommandCompletions.cpp
@@ -333,7 +333,7 @@ static void DiskFilesOrDirectories(const llvm::Twine &partial_name,
llvm::StringRef SearchDir;
llvm::StringRef PartialItem;
- if (CompletionBuffer.startswith("~")) {
+ if (CompletionBuffer.starts_with("~")) {
llvm::StringRef Buffer = CompletionBuffer;
size_t FirstSep =
Buffer.find_if([](char c) { return path::is_separator(c); });