[all-commits] [llvm/llvm-project] 86b6ac: [Demangle] refactor DLangDemangle to use std::stri...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Mon Jun 5 14:39:05 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 86b6ac5d54d7fe5cd21beff64b5c2194b1368bdf
https://github.com/llvm/llvm-project/commit/86b6ac5d54d7fe5cd21beff64b5c2194b1368bdf
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2023-06-05 (Mon, 05 Jun 2023)
Changed paths:
M llvm/lib/Demangle/DLangDemangle.cpp
Log Message:
-----------
[Demangle] refactor DLangDemangle to use std::string_view
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.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D152177
More information about the All-commits
mailing list