[all-commits] [llvm/llvm-project] f198e0: [StringView] remove dropFront

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Fri Apr 14 10:27:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f198e0b594aa697d5aeacf6abe3399c37b446830
      https://github.com/llvm/llvm-project/commit/f198e0b594aa697d5aeacf6abe3399c37b446830
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M llvm/include/llvm/Demangle/ItaniumDemangle.h
    M llvm/include/llvm/Demangle/StringView.h
    M llvm/lib/Demangle/MicrosoftDemangle.cpp

  Log Message:
  -----------
  [StringView] remove dropFront

Towards converting our use of llvm::StringView to std::string_view,
remove a method that std::string_view doesn't have.
llvm::StringView::dropFront is semantically similar to
std::string_view::substr but with the input clamped to the size. No code
was relying on clamping other than the rust demangler, which I fixed in
https://reviews.llvm.org/D148272.  Removing this method makes it easier
to switch over code later.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D148348




More information about the All-commits mailing list