[all-commits] [llvm/llvm-project] 1460e2: [libc] Add a placeholder for swprintf function (#2...
Alexey Samsonov via All-commits
all-commits at lists.llvm.org
Mon Jun 1 16:23:24 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1460e27c8d38bd9632e1bd95d1f534ba71996a02
https://github.com/llvm/llvm-project/commit/1460e27c8d38bd9632e1bd95d1f534ba71996a02
Author: Alexey Samsonov <vonosmas at gmail.com>
Date: 2026-06-01 (Mon, 01 Jun 2026)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/include/wchar.yaml
M libc/src/wchar/CMakeLists.txt
A libc/src/wchar/swprintf.cpp
A libc/src/wchar/swprintf.h
M libc/test/src/wchar/CMakeLists.txt
A libc/test/src/wchar/swprintf_test.cpp
Log Message:
-----------
[libc] Add a placeholder for swprintf function (#200895)
Add a declaration and stub implementation for the `swprintf` function.
Only enable it when `LLVM_LIBC_ENABLE_EXPERIMENTAL_ENTRYPOINTS` is
specified to clarify that the implementation is not ready yet.
We're singling out `swprintf` among the other wide-character formatting
functions because it's used in libc++ to implement `std::to_wstring` for
floating point values
(https://github.com/llvm/llvm-project/blob/2a2e45257b8277ae6dbd3bce1627a9b07d1a301d/libcxx/src/string.cpp#L366),
and is the last remaining piece of functionality preventing us from
turning on wide character support in libc++ built against llvm-libc.
Adding the stub function would allow us to test the compilation with
`_LIBCPP_HAS_WIDE_CHARACTERS` enabled, and start keeping track of what
tests from libc++ test suite are working / not working yet.
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