[PATCH] D148375: [StringView] remove consumeFront

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 13:40:49 PDT 2023


nickdesaulniers created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Towards converting our use of llvm::StringView to std::string_view,
remove a method that std::string_view doesn't have.

This could be moved to the nascent llvm/ADT/StringViewExtras.h, but the
use is highly localized to one TU. Move this to be a static function
there.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148375

Files:
  llvm/include/llvm/Demangle/ItaniumDemangle.h
  llvm/include/llvm/Demangle/StringView.h
  llvm/lib/Demangle/MicrosoftDemangle.cpp
  llvm/lib/Demangle/RustDemangle.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148375.513733.patch
Type: text/x-patch
Size: 20834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/8f4490d7/attachment.bin>


More information about the llvm-commits mailing list