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

via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 9 13:24:30 PST 2023


Author: Kazu Hirata
Date: 2023-12-09T13:24:26-08:00
New Revision: b5b250b6ff58acfbd7f0c70ea186b416d3b0d7d7

URL: https://github.com/llvm/llvm-project/commit/b5b250b6ff58acfbd7f0c70ea186b416d3b0d7d7
DIFF: https://github.com/llvm/llvm-project/commit/b5b250b6ff58acfbd7f0c70ea186b416d3b0d7d7.diff

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

These functions have been deprecated since:

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

Added: 
    

Modified: 
    llvm/include/llvm/ADT/StringRef.h

Removed: 
    


################################################################################
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


        


More information about the llvm-commits mailing list