mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -171,7 +171,7 @@ unsigned FrontendInputsAndOutputs::numberOfPrimaryInputsEndingWith(
|
||||
StringRef extension) const {
|
||||
unsigned n = 0;
|
||||
(void)forEachPrimaryInput([&](const InputFile &input) -> bool {
|
||||
if (llvm::sys::path::extension(input.getFileName()).endswith(extension))
|
||||
if (llvm::sys::path::extension(input.getFileName()).ends_with(extension))
|
||||
++n;
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user