[clang] [llvm] [llvm-strings] Add --encoding={s, S, utf8} option (PR #221794)
Harald van Dijk via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 03:34:00 PST 2026
hvdijk wrote:
> This fails to build with Xcode 12:
Ah. There, `<cuchar>` isn't used anyway so we can fix that by leaving out the `#include`.
> AFAIK `mbrtoc32()` is just a wrapper around `mbrtowc()` and for `c32rtomb` we could go through `std::wcrtomb`.
In general this doesn't hold so we can't do that unconditionally, but for glibc this is true, so for older glibc we could do that.
I'll get a change ready that does both of these.
We've had "LLVM requires C++17 or higher" in the documentation since 2022, but we keep finding more cases where this standard C++17 code doesn't work and requires workarounds. Do we need to also update the documentation?
https://github.com/llvm/llvm-project/pull/221794
More information about the cfe-commits
mailing list