Skip to content

Commit a255da0

Browse files
[libc] clean up duplicated includes in generated headers (llvm#124524)
Fixes: llvm#124149
1 parent 5dab5bf commit a255da0

File tree

11 files changed

+10
-14
lines changed

11 files changed

+10
-14
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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ types:
88
- type_name: __qsortrcompare_t
99
- type_name: __qsortcompare_t
1010
- type_name: __bsearchcompare_t
11-
- type_name: size_t
12-
- type_name: lldiv_t
13-
- type_name: ldiv_t
1411
- type_name: div_t
12+
- type_name: ldiv_t
13+
- type_name: lldiv_t
14+
- type_name: locale_t
15+
- type_name: size_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
@@ -2,6 +2,7 @@ header: string.h
22
header_template: string.h.def
33
macros: []
44
types:
5+
- type_name: locale_t
56
- type_name: size_t
67
enums: []
78
objects: []

libc/include/sys/time.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

14-
#include "../llvm-libc-types/struct_timeval.h"
15-
1614
#include "../llvm-libc-macros/sys-time-macros.h"
1715

1816
%%public_api()

libc/include/sys/time.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ header: sys/time.h
22
header_template: time.h.def
33
standards: Linux
44
macros: []
5-
types: []
5+
types:
6+
- type_name: struct_timeval
67
enums: []
78
functions: []
89
objects: []

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)