Skip to content

[libc] clean up duplicated includes in generated headers #124524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions libc/include/locale.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#include "__llvm-libc-common.h"

#include "llvm-libc-macros/locale-macros.h"
#include "llvm-libc-types/locale_t.h"
#include "llvm-libc-types/struct_lconv.h"

%%public_api()

Expand Down
3 changes: 3 additions & 0 deletions libc/include/locale.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
header: locale.h
header_template: locale.h.def
types:
- type_name: locale_t
- type_name: struct_lconv
functions:
- name: localeconv
standards:
Expand Down
1 change: 0 additions & 1 deletion libc/include/math.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "__llvm-libc-common.h"
#include "llvm-libc-macros/float16-macros.h"
#include "llvm-libc-macros/math-macros.h"
#include "llvm-libc-types/float128.h"


%%public_api()
Expand Down
1 change: 0 additions & 1 deletion libc/include/setjmp.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define LLVM_LIBC_SETJMP_H

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

%%public_api()

Expand Down
1 change: 0 additions & 1 deletion libc/include/stdlib.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define LLVM_LIBC_STDLIB_H

#include "__llvm-libc-common.h"
#include "llvm-libc-types/locale_t.h"
#include "llvm-libc-macros/stdlib-macros.h"

%%public_api()
Expand Down
7 changes: 4 additions & 3 deletions libc/include/stdlib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ types:
- type_name: __qsortrcompare_t
- type_name: __qsortcompare_t
- type_name: __bsearchcompare_t
- type_name: size_t
- type_name: lldiv_t
- type_name: ldiv_t
- type_name: div_t
- type_name: ldiv_t
- type_name: lldiv_t
- type_name: locale_t
- type_name: size_t
enums: []
objects: []
functions:
Expand Down
1 change: 0 additions & 1 deletion libc/include/string.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "__llvm-libc-common.h"

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

%%public_api()
Expand Down
1 change: 1 addition & 0 deletions libc/include/string.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ header: string.h
header_template: string.h.def
macros: []
types:
- type_name: locale_t
- type_name: size_t
enums: []
objects: []
Expand Down
2 changes: 0 additions & 2 deletions libc/include/sys/time.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include "__llvm-libc-common.h"

#include "../llvm-libc-types/struct_timeval.h"

#include "../llvm-libc-macros/sys-time-macros.h"

%%public_api()
Expand Down
3 changes: 2 additions & 1 deletion libc/include/sys/time.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ header: sys/time.h
header_template: time.h.def
standards: Linux
macros: []
types: []
types:
- type_name: struct_timeval
enums: []
functions: []
objects: []
2 changes: 0 additions & 2 deletions libc/include/wchar.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include "__llvm-libc-common.h"
#include "llvm-libc-macros/wchar-macros.h"
#include "llvm-libc-types/wint_t.h"
#include "llvm-libc-types/mbstate_t.h"

%%public_api()

Expand Down
Loading