[libc++] Refactor char_traits
authorNikolas Klauser <nikolasklauser@berlin.de>
Wed, 7 Dec 2022 17:31:14 +0000 (18:31 +0100)
committerNikolas Klauser <nikolasklauser@berlin.de>
Fri, 9 Dec 2022 14:45:02 +0000 (15:45 +0100)
commit72173469dd020fd1eb81f607aa4782ec5ec7425c
tree45e1cd7f7077939f93f6d18397d4d8b489398e1e
parent1b410745081dadae7a9a11b3939c06fed377fda0
[libc++] Refactor char_traits

This allows us to reuse workarounds for compilers that don't provide the builtins or constexpr support.

Reviewed By: ldionne, Mordante, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D139555
libcxx/include/__string/char_traits.h
libcxx/include/cstring
libcxx/include/cwchar
libcxx/test/libcxx/strings/c.strings/constexpr.cstring.compile.pass.cpp [new file with mode: 0644]
libcxx/test/libcxx/strings/c.strings/constexpr.cwchar.compile.pass.cpp [new file with mode: 0644]