File tree Expand file tree Collapse file tree 8 files changed +39
-13
lines changed Expand file tree Collapse file tree 8 files changed +39
-13
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ set(TARGET_PUBLIC_HEADERS
25
25
libc.include.threads
26
26
libc.include.time
27
27
libc.include.unistd
28
+ libc.include.wchar
29
+ libc.include.uchar
28
30
29
31
libc.include.sys_ioctl
30
32
# Disabled due to epoll_wait syscalls not being available on this platform.
Original file line number Diff line number Diff line change @@ -206,6 +206,15 @@ def WCharAPI : PublicAPI<"wchar.h"> {
206
206
];
207
207
}
208
208
209
+ def UCharAPI : PublicAPI<"uchar.h"> {
210
+ let Types = [
211
+ "mbstate_t",
212
+ "char8_t",
213
+ "char16_t",
214
+ "char32_t",
215
+ ];
216
+ }
217
+
209
218
def SysRandomAPI : PublicAPI<"sys/random.h"> {
210
219
let Types = ["size_t", "ssize_t"];
211
220
}
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ set(TARGET_PUBLIC_HEADERS
12
12
libc.include.string
13
13
libc.include.strings
14
14
libc.include.search
15
+ libc.include.wchar
16
+ libc.include.uchar
15
17
16
18
# Disabled due to epoll_wait syscalls not being available on this platform.
17
19
# libc.include.sys_epoll
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ set(TARGET_PUBLIC_HEADERS
28
28
libc.include.time
29
29
libc.include.unistd
30
30
libc.include.wchar
31
+ libc.include.uchar
31
32
32
33
libc.include.arpa_inet
33
34
Original file line number Diff line number Diff line change @@ -91,8 +91,20 @@ add_header(struct_termios HDR struct_termios.h DEPENDS .cc_t .speed_t .tcflag_t)
91
91
add_header (__getoptargv_t HDR __getoptargv_t.h )
92
92
add_header (wchar_t HDR wchar_t.h )
93
93
add_header (char8_t HDR char8_t.h )
94
- add_header (char16_t HDR char16_t.h )
95
- add_header (char32_t HDR char32_t.h )
94
+ add_header (
95
+ char16_t
96
+ HDR
97
+ char16_t.h
98
+ DEPENDS
99
+ libc.include.llvm-libc-macros.stdint_macros
100
+ )
101
+ add_header (
102
+ char32_t
103
+ HDR
104
+ char32_t.h
105
+ DEPENDS
106
+ libc.include.llvm-libc-macros.stdint_macros
107
+ )
96
108
add_header (wint_t HDR wint_t.h )
97
109
add_header (sa_family_t HDR sa_family_t.h )
98
110
add_header (socklen_t HDR socklen_t.h )
Original file line number Diff line number Diff line change 1
- //===-- Definition of clock_t type - ---------------------------------------===//
1
+ //===-- Definition of char16_t type ---------------------------------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLVM_LIBC_TYPES_CHAR8_T_H
10
- #define LLVM_LIBC_TYPES_CHAR8_T_H
9
+ #ifndef LLVM_LIBC_TYPES_CHAR16_T_H
10
+ #define LLVM_LIBC_TYPES_CHAR16_T_H
11
11
12
12
#if defined(__STDC_VERSION__ ) && __STDC_VERSION__ >= 201112L
13
- #include < stdint.h>
13
+ #include "../llvm-libc-macros/ stdint-macros.h"
14
14
typedef uint_least16_t char16_t ;
15
15
#endif
16
16
17
- #endif // LLVM_LIBC_TYPES_CHAR8_T_H
17
+ #endif // LLVM_LIBC_TYPES_CHAR16_T_H
Original file line number Diff line number Diff line change 1
- //===-- Definition of clock_t type - ---------------------------------------===//
1
+ //===-- Definition of char32_t type ---------------------------------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
//===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLVM_LIBC_TYPES_CHAR8_T_H
10
- #define LLVM_LIBC_TYPES_CHAR8_T_H
9
+ #ifndef LLVM_LIBC_TYPES_CHAR32_T_H
10
+ #define LLVM_LIBC_TYPES_CHAR32_T_H
11
11
12
12
#if defined(__STDC_VERSION__ ) && __STDC_VERSION__ >= 201112L
13
- #include < stdint.h>
13
+ #include "../llvm-libc-macros/ stdint-macros.h"
14
14
typedef uint_least32_t char32_t ;
15
15
#endif
16
16
17
- #endif // LLVM_LIBC_TYPES_CHAR8_T_H
17
+ #endif // LLVM_LIBC_TYPES_CHAR32_T_H
Original file line number Diff line number Diff line change 1
- //===-- Definition of clock_t type ----------------------------------------===//
1
+ //===-- Definition of char8_t type ----------------------------------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
You can’t perform that action at this time.
0 commit comments