-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADT] Remove StringRef::equals #98735
[ADT] Remove StringRef::equals #98735
Conversation
@llvm/pr-subscribers-llvm-adt Author: Kazu Hirata (kazutakahirata) ChangesStringRef::equals has been deprecated since: commit de483ad Full diff: https://github.com/llvm/llvm-project/pull/98735.diff 1 Files Affected:
diff --git a/llvm/include/llvm/ADT/StringRef.h b/llvm/include/llvm/ADT/StringRef.h
index 2120c04530b23..049f22b03e46e 100644
--- a/llvm/include/llvm/ADT/StringRef.h
+++ b/llvm/include/llvm/ADT/StringRef.h
@@ -159,14 +159,6 @@ namespace llvm {
return StringRef(S, Length);
}
- /// equals - Check for string equality, this is more efficient than
- /// compare() when the relative ordering of inequal strings isn't needed.
- [[nodiscard]] LLVM_DEPRECATED("Use == instead",
- "==") bool equals(StringRef RHS) const {
- return (Length == RHS.Length &&
- compareMemory(Data, RHS.Data, RHS.Length) == 0);
- }
-
/// Check for string equality, ignoring case.
[[nodiscard]] bool equals_insensitive(StringRef RHS) const {
return Length == RHS.Length && compare_insensitive(RHS) == 0;
|
StringRef::equals has been deprecated since: commit de483ad Author: Kazu Hirata <[email protected]> Date: Thu May 16 00:38:37 2024 -0700
6b0f48f
to
7f2e5f4
Compare
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/13/builds/712 Here is the relevant piece of the build log for the reference:
|
StringRef::equals has been deprecated since: commit de483ad Author: Kazu Hirata <[email protected]> Date: Thu May 16 00:38:37 2024 -0700
StringRef::equals has been deprecated since: commit de483ad Author: Kazu Hirata <[email protected]> Date: Thu May 16 00:38:37 2024 -0700
StringRef::equals has been deprecated since:
commit de483ad
Author: Kazu Hirata [email protected]
Date: Thu May 16 00:38:37 2024 -0700