[all-commits] [llvm/llvm-project] cc4ecf: [ADT] Rename SmallString::{starts, ends}with to {st...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat Dec 9 14:28:58 PST 2023


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

  Changed paths:
    M clang-tools-extra/clang-doc/Mapper.cpp
    M clang-tools-extra/modularize/ModuleAssistant.cpp
    M clang/lib/AST/MicrosoftMangle.cpp
    M clang/lib/Basic/Module.cpp
    M clang/lib/CrossTU/CrossTranslationUnit.cpp
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/Darwin.cpp
    M clang/lib/Lex/ModuleMap.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M lld/COFF/PDB.cpp
    M lld/MachO/InputFiles.cpp
    M lldb/source/Commands/CommandCompletions.cpp
    M llvm/include/llvm/ADT/SmallString.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/Support/Windows/Path.inc
    M llvm/tools/dsymutil/DebugMap.cpp
    M llvm/tools/llvm-cov/CodeCoverage.cpp
    M llvm/tools/llvm-cov/CoverageReport.cpp
    M llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
    M llvm/tools/llvm-ml/llvm-ml.cpp
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  [ADT] Rename SmallString::{starts,ends}with to {starts,ends}_with (#74916)

This patch renames {starts,ends}with to {starts,ends}_with for
consistency with std::{string,string_view}::{starts,ends}_with in
C++20.  Since there are only a handful of occurrences, this patch
skips the deprecation phase and simply renames them.




More information about the All-commits mailing list