[all-commits] [llvm/llvm-project] caf469: [Support] Take ArrayRef in convertWideToUTF8 (#200...
Nerixyz via All-commits
all-commits at lists.llvm.org
Mon Jun 1 04:19:47 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: caf469dc802464a3554f52b10c818d4e0c840062
https://github.com/llvm/llvm-project/commit/caf469dc802464a3554f52b10c818d4e0c840062
Author: Nerixyz <nerixdev at outlook.de>
Date: 2026-06-01 (Mon, 01 Jun 2026)
Changed paths:
M llvm/include/llvm/Support/ConvertUTF.h
M llvm/lib/Support/ConvertUTFWrapper.cpp
Log Message:
-----------
[Support] Take ArrayRef in convertWideToUTF8 (#200687)
`convertWideToUTF8` took a `std::wstring`, but it never modified its
data. An `ArrayRef` or `std::wstring_view` are sufficient here. I chose
`ArrayRef<wchar_t>` over `std::wstring_view`, because it can be
implicitly constructed from any range that provides `data()` and
`size()`. A second overload taking a `const wchar_t *` is provided to
convert null terminated wide C-strings.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list