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

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Dec 13 22:46:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c9d82de6b72cc0c037daecce452c450870f0034
      https://github.com/llvm/llvm-project/commit/5c9d82de6b72cc0c037daecce452c450870f0034
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-12-13 (Wed, 13 Dec 2023)

  Changed paths:
    M llvm/lib/AsmParser/LLLexer.cpp
    M llvm/unittests/Analysis/CFGTest.cpp
    M llvm/unittests/Analysis/TBAATest.cpp
    M llvm/unittests/CodeGen/MachineInstrTest.cpp
    M llvm/unittests/DebugInfo/LogicalView/CodeViewReaderTest.cpp
    M llvm/unittests/DebugInfo/LogicalView/ELFReaderTest.cpp
    M llvm/unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h
    M llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
    M llvm/unittests/FileCheck/FileCheckTest.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M llvm/unittests/IR/VerifierTest.cpp
    M llvm/unittests/Support/MemoryBufferTest.cpp
    M llvm/unittests/Support/ProgramTest.cpp
    M llvm/unittests/Support/TarWriterTest.cpp
    M llvm/unittests/Support/TypeNameTest.cpp
    M llvm/unittests/Support/VirtualFileSystemTest.cpp
    M llvm/unittests/TargetParser/CSKYTargetParserTest.cpp
    M llvm/unittests/TargetParser/TargetParserTest.cpp
    M llvm/unittests/Transforms/Coroutines/ExtraRematTest.cpp
    M llvm/unittests/Transforms/Utils/CloningTest.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