Rename StringRef::endswith references to StringRef::ends_with

Missed this when doing the `startswith` renaming. `endswith` has also
been deprecated upstream (and presumably soon to be removed).
This commit is contained in:
Ben Barham
2024-04-01 10:56:24 -07:00
parent 3bc570fd93
commit 1fdda023b3
47 changed files with 99 additions and 99 deletions

View File

@@ -187,7 +187,7 @@ static int action_replay_result(swiftscan_cas_t cas, const char *key,
static std::vector<const char *> createArgs(ArrayRef<std::string> Cmd,
StringSaver &Saver) {
if (!Cmd.empty() && StringRef(Cmd.front()).endswith("swift-frontend"))
if (!Cmd.empty() && StringRef(Cmd.front()).ends_with("swift-frontend"))
Cmd = Cmd.drop_front();
std::vector<const char *> Args;