[all-commits] [llvm/llvm-project] 395f9c: Use StringRef::{starts, ends}_with (NFC)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat Dec 16 10:14:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 395f9ce30e884cb6ce02f7a3bdd0dd1f72ea9033
      https://github.com/llvm/llvm-project/commit/395f9ce30e884cb6ce02f7a3bdd0dd1f72ea9033
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-12-16 (Sat, 16 Dec 2023)

  Changed paths:
    M clang/lib/Lex/HeaderSearch.cpp
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/Target/DirectX/DXILResource.cpp
    M llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVBaseInfo.cpp
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    M llvm/lib/Target/SPIRV/SPIRVRegularizer.cpp
    M llvm/lib/Target/SPIRV/SPIRVUtils.cpp
    M llvm/lib/Target/Xtensa/AsmParser/XtensaAsmParser.cpp

  Log Message:
  -----------
  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