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

@@ -764,7 +764,7 @@ void UnboundImport::validateInterfaceWithPackageName(ModuleDecl *topLevelModule,
ASTContext &ctx = topLevelModule->getASTContext();
if (topLevelModule->inSamePackage(ctx.MainModule) &&
topLevelModule->isBuiltFromInterface() &&
!topLevelModule->getModuleSourceFilename().endswith(".package.swiftinterface")) {
!topLevelModule->getModuleSourceFilename().ends_with(".package.swiftinterface")) {
ctx.Diags.diagnose(import.module.getModulePath().front().Loc,
diag::in_package_module_not_compiled_from_source_or_package_interface,
topLevelModule->getBaseIdentifier(),