[llvm] [ADT] Remove StringRef::{starts, ends}with_insensitive (PR #74918)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 22:12:57 PST 2023
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/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
>From 62b3decfb571732b4e92f31c3e3cb7f2368c8920 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 8 Dec 2023 09:10:59 -0800
Subject: [PATCH] [ADT] Remove StringRef::{starts,ends}with_insensitive
These functions have been deprecated since:
commit 1117d806ca4d9b5b04263456dcb1ced76ade78cb
Author: Kazu Hirata <kazu at google.com>
Date: Mon Jun 5 13:18:07 2023 -0700
---
llvm/include/llvm/ADT/StringRef.h | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/llvm/include/llvm/ADT/StringRef.h b/llvm/include/llvm/ADT/StringRef.h
index 235a7b27c38440..4e69d5b633546d 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