File tree Expand file tree Collapse file tree 8 files changed +43
-3
lines changed Expand file tree Collapse file tree 8 files changed +43
-3
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,8 @@ add_proxy_header_library(
212212
213213add_header_library(wchar_overlay HDRS wchar_overlay.h)
214214
215+ add_header_library(uchar_overlay HDRS uchar_overlay.h)
216+
215217add_proxy_header_library(
216218 wchar_macros
217219 HDRS
Original file line number Diff line number Diff line change 1+
2+ add_proxy_header_library(
3+ char8_t
4+ HDRS
5+ char8_t.h
6+ DEPENDS
7+ libc.hdr.uchar_overlay
8+ FULL_BUILD_DEPENDS
9+ libc.include .llvm-libc-types.char8_t
10+ libc.include .uchar
11+ )
12+
13+ add_proxy_header_library(
14+ char32_t
15+ HDRS
16+ char32_t.h
17+ DEPENDS
18+ libc.hdr.uchar_overlay
19+ FULL_BUILD_DEPENDS
20+ libc.include .llvm-libc-types.char32_t
21+ libc.include .uchar
22+ )
23+
124add_proxy_header_library(
225 div_t
326 HDRS
Original file line number Diff line number Diff line change 99#ifndef LLVM_LIBC_TYPES_CHAR8_T_H
1010#define LLVM_LIBC_TYPES_CHAR8_T_H
1111
12- #if !defined(__cplusplus ) && defined(__STDC_VERSION__ ) && \
13- __STDC_VERSION__ >= 202311L
12+ #if !(defined(__cplusplus ) && defined(__cpp_char8_t ))
1413typedef unsigned char char8_t ;
1514#endif
1615
Original file line number Diff line number Diff line change @@ -381,3 +381,5 @@ add_subdirectory(HashTable)
381381add_subdirectory (fixed_point)
382382
383383add_subdirectory (time)
384+
385+ add_subdirectory (wchar)
Original file line number Diff line number Diff line change 99#ifndef LLVM_LIBC_SRC___SUPPORT_MBSTATE_H
1010#define LLVM_LIBC_SRC___SUPPORT_MBSTATE_H
1111
12+ #include " src/__support/common.h"
1213#include " hdr/types/char32_t.h"
1314#include < stdint.h>
1415
Original file line number Diff line number Diff line change 1010#define LLVM_LIBC_SRC___SUPPORT_UTF_RET_H
1111
1212namespace LIBC_NAMESPACE_DECL {
13-
13+ namespace internal {
1414template <typename T> struct utf_ret {
1515 T out;
1616 int error;
1717};
1818
19+ } // namespace internal
1920} // namespace LIBC_NAMESPACE_DECL
2021
2122#endif // LLVM_LIBC_SRC___SUPPORT_UTF_RET_H
Original file line number Diff line number Diff line change @@ -275,3 +275,4 @@ add_subdirectory(fixed_point)
275275add_subdirectory (HashTable)
276276add_subdirectory (time)
277277add_subdirectory (threads)
278+ add_subdirectory (wchar)
Original file line number Diff line number Diff line change 1+ add_custom_target (libc-support-wchar-tests)
2+
3+ add_libc_test(
4+ utf32_to_8_test
5+ SUITE
6+ libc-support-tests
7+ SRCS
8+ utf32_to_8_test.cpp
9+ DEPENDS
10+ libc.src.__support.wchar.character_converter
11+ )
You can’t perform that action at this time.
0 commit comments