Skip to content

Commit cfd54a8

Browse files
committed
[libc] clean up duplicated includes in generated headers
1 parent bd38c49 commit cfd54a8

File tree

9 files changed

+5
-8
lines changed

9 files changed

+5
-8
lines changed

libc/include/locale.h.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include "__llvm-libc-common.h"
1313

1414
#include "llvm-libc-macros/locale-macros.h"
15-
#include "llvm-libc-types/locale_t.h"
16-
#include "llvm-libc-types/struct_lconv.h"
1715

1816
%%public_api()
1917

libc/include/locale.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
header: locale.h
22
header_template: locale.h.def
3+
types:
4+
- type_name: locale_t
5+
- type_name: struct_lconv
36
functions:
47
- name: localeconv
58
standards:

libc/include/math.h.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "__llvm-libc-common.h"
1313
#include "llvm-libc-macros/float16-macros.h"
1414
#include "llvm-libc-macros/math-macros.h"
15-
#include "llvm-libc-types/float128.h"
1615

1716

1817
%%public_api()

libc/include/setjmp.h.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define LLVM_LIBC_SETJMP_H
1111

1212
#include "__llvm-libc-common.h"
13-
#include "llvm-libc-types/jmp_buf.h"
1413

1514
%%public_api()
1615

libc/include/stdlib.h.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define LLVM_LIBC_STDLIB_H
1111

1212
#include "__llvm-libc-common.h"
13-
#include "llvm-libc-types/locale_t.h"
1413
#include "llvm-libc-macros/stdlib-macros.h"
1514

1615
%%public_api()

libc/include/stdlib.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ types:
1212
- type_name: lldiv_t
1313
- type_name: ldiv_t
1414
- type_name: div_t
15+
- type_name: locale_t
1516
enums: []
1617
objects: []
1718
functions:

libc/include/string.h.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
#include "__llvm-libc-common.h"
1313

14-
#include "llvm-libc-types/locale_t.h"
1514
#include "llvm-libc-macros/null-macro.h"
1615

1716
%%public_api()

libc/include/string.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ header_template: string.h.def
33
macros: []
44
types:
55
- type_name: size_t
6+
- type_name: locale_t
67
enums: []
78
objects: []
89
functions:

libc/include/wchar.h.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
#include "__llvm-libc-common.h"
1313
#include "llvm-libc-macros/wchar-macros.h"
14-
#include "llvm-libc-types/wint_t.h"
15-
#include "llvm-libc-types/mbstate_t.h"
1614

1715
%%public_api()
1816

0 commit comments

Comments
 (0)