mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -294,7 +294,7 @@ class RemovedAddedNodeMatcher : public NodeMatcher, public MatchedNodeListener {
|
||||
if (((StringRef)LL).starts_with((llvm::Twine("ns") + RR).str()) ||
|
||||
((StringRef)RR).starts_with((llvm::Twine("ns") + LL).str()))
|
||||
return true;
|
||||
if (((StringRef)LL).endswith(RR) || ((StringRef)RR).endswith(LL))
|
||||
if (((StringRef)LL).ends_with(RR) || ((StringRef)RR).ends_with(LL))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user