We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8389177 commit de483adCopy full SHA for de483ad
llvm/include/llvm/ADT/StringRef.h
@@ -161,7 +161,8 @@ namespace llvm {
161
162
/// equals - Check for string equality, this is more efficient than
163
/// compare() when the relative ordering of inequal strings isn't needed.
164
- [[nodiscard]] bool equals(StringRef RHS) const {
+ [[nodiscard]] LLVM_DEPRECATED("Use == instead",
165
+ "==") bool equals(StringRef RHS) const {
166
return (Length == RHS.Length &&
167
compareMemory(Data, RHS.Data, RHS.Length) == 0);
168
}
0 commit comments