[llvm] [ADT] Remove StringRef::{starts, ends}with_insensitive (PR #74918)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 22:13:27 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-adt

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

These functions have been deprecated since:

  commit 1117d806ca4d9b5b04263456dcb1ced76ade78cb
  Author: Kazu Hirata <kazu@<!-- -->google.com>
  Date:   Mon Jun 5 13:18:07 2023 -0700


---
Full diff: https://github.com/llvm/llvm-project/pull/74918.diff


1 Files Affected:

- (modified) llvm/include/llvm/ADT/StringRef.h (-12) 


``````````diff
diff --git a/llvm/include/llvm/ADT/StringRef.h b/llvm/include/llvm/ADT/StringRef.h
index 235a7b27c3844..4e69d5b633546 100644
--- a/llvm/include/llvm/ADT/StringRef.h
+++ b/llvm/include/llvm/ADT/StringRef.h
@@ -264,12 +264,6 @@ namespace llvm {
 
     /// Check if this string starts with the given \p Prefix, ignoring case.
     [[nodiscard]] bool starts_with_insensitive(StringRef Prefix) const;
-    [[nodiscard]] LLVM_DEPRECATED(
-        "Use starts_with_insensitive instead",
-        "starts_with_insensitive") bool startswith_insensitive(StringRef Prefix)
-        const {
-      return starts_with_insensitive(Prefix);
-    }
 
     /// Check if this string ends with the given \p Suffix.
     [[nodiscard]] bool ends_with(StringRef Suffix) const {
@@ -283,12 +277,6 @@ namespace llvm {
 
     /// Check if this string ends with the given \p Suffix, ignoring case.
     [[nodiscard]] bool ends_with_insensitive(StringRef Suffix) const;
-    [[nodiscard]] LLVM_DEPRECATED(
-        "Use ends_with_insensitive instead",
-        "ends_with_insensitive") bool endswith_insensitive(StringRef Suffix)
-        const {
-      return ends_with_insensitive(Suffix);
-    }
 
     /// @}
     /// @name String Searching

``````````

</details>


https://github.com/llvm/llvm-project/pull/74918


More information about the llvm-commits mailing list