[PATCH] D152177: [Demangle] refactor DLangDemangle to use std::string_view

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 10:26:24 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.

Many existing methods of the D Language Demangler take a C style string
and return an adjusted pointer to the same object as the input string is
consumed.

Make it more obvious by changing the signatures to accept
std::string_view& when the input is modified vs a copy of a
std::string_view when the input is not.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152177

Files:
  llvm/lib/Demangle/DLangDemangle.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152177.528497.patch
Type: text/x-patch
Size: 19468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230605/2aa8744c/attachment-0001.bin>


More information about the llvm-commits mailing list