[all-commits] [llvm/llvm-project] 038871: [llvm] Use StringRef::{starts, ends}_with (NFC)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sat Dec 16 14:47:31 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 038871ae684b9cf47222bc0de666847f7294cab5
https://github.com/llvm/llvm-project/commit/038871ae684b9cf47222bc0de666847f7294cab5
Author: Kazu Hirata <kazu at google.com>
Date: 2023-12-16 (Sat, 16 Dec 2023)
Changed paths:
M llvm/lib/TargetParser/Host.cpp
M llvm/unittests/Support/ProgramTest.cpp
M llvm/unittests/Support/TypeNameTest.cpp
Log Message:
-----------
[llvm] Use StringRef::{starts,ends}_with (NFC)
This patch replaces uses of StringRef::{starts,ends}with with
StringRef::{starts,ends}_with for consistency with
std::{string,string_view}::{starts,ends}_with in C++20.
I'm planning to deprecate and eventually remove
StringRef::{starts,ends}with.
More information about the All-commits
mailing list