Skip to content

Commit f1a8db1

Browse files
[libc][newhdrgen] Remove redundant yaml prefixes (#99581)
Since the yaml files are already organized into folders, the name of the file doesn't also need to be prefixed by what folder it's in.
1 parent 1f6f97e commit f1a8db1

20 files changed

+19
-19
lines changed

libc/include/CMakeLists.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/arpa)
174174

175175
add_header_macro(
176176
arpa_inet
177-
../libc/newhdrgen/yaml/arpa/arpa_inet.yaml
177+
../libc/newhdrgen/yaml/arpa/inet.yaml
178178
arpa/inet.h.def
179179
arpa/inet.h
180180
DEPENDS
@@ -426,7 +426,7 @@ file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/sys)
426426

427427
add_header_macro(
428428
sys_auxv
429-
../libc/newhdrgen/yaml/sys/sys_auxv.yaml
429+
../libc/newhdrgen/yaml/sys/auxv.yaml
430430
sys/auxv.h.def
431431
sys/auxv.h
432432
DEPENDS
@@ -436,7 +436,7 @@ add_header_macro(
436436

437437
add_header_macro(
438438
sys_epoll
439-
../libc/newhdrgen/yaml/sys/sys_epoll.yaml
439+
../libc/newhdrgen/yaml/sys/epoll.yaml
440440
sys/epoll.h.def
441441
sys/epoll.h
442442
DEPENDS
@@ -449,7 +449,7 @@ add_header_macro(
449449

450450
add_header_macro(
451451
sys_ioctl
452-
../libc/newhdrgen/yaml/sys/sys_ioctl.yaml
452+
../libc/newhdrgen/yaml/sys/ioctl.yaml
453453
sys/ioctl.h.def
454454
sys/ioctl.h
455455
DEPENDS
@@ -459,7 +459,7 @@ add_header_macro(
459459

460460
add_header_macro(
461461
sys_mman
462-
../libc/newhdrgen/yaml/sys/sys_mman.yaml
462+
../libc/newhdrgen/yaml/sys/mman.yaml
463463
sys/mman.h.def
464464
sys/mman.h
465465
DEPENDS
@@ -472,7 +472,7 @@ add_header_macro(
472472

473473
add_header_macro(
474474
sys_prctl
475-
../libc/newhdrgen/yaml/sys/sys_prctl.yaml
475+
../libc/newhdrgen/yaml/sys/prctl.yaml
476476
sys/prctl.h.def
477477
sys/prctl.h
478478
DEPENDS
@@ -489,7 +489,7 @@ add_header(
489489

490490
add_header_macro(
491491
sys_random
492-
../libc/newhdrgen/yaml/sys/sys_random.yaml
492+
../libc/newhdrgen/yaml/sys/random.yaml
493493
sys/random.h.def
494494
sys/random.h
495495
DEPENDS
@@ -501,7 +501,7 @@ add_header_macro(
501501

502502
add_header_macro(
503503
sys_resource
504-
../libc/newhdrgen/yaml/sys/sys_resource.yaml
504+
../libc/newhdrgen/yaml/sys/resource.yaml
505505
sys/resource.h.def
506506
sys/resource.h
507507
DEPENDS
@@ -513,7 +513,7 @@ add_header_macro(
513513

514514
add_header_macro(
515515
sys_stat
516-
../libc/newhdrgen/yaml/sys/sys_stat.yaml
516+
../libc/newhdrgen/yaml/sys/stat.yaml
517517
sys/stat.h.def
518518
sys/stat.h
519519
DEPENDS
@@ -535,7 +535,7 @@ add_header_macro(
535535

536536
add_header_macro(
537537
sys_select
538-
../libc/newhdrgen/yaml/sys/sys_select.yaml
538+
../libc/newhdrgen/yaml/sys/select.yaml
539539
sys/select.h.def
540540
sys/select.h
541541
DEPENDS
@@ -551,7 +551,7 @@ add_header_macro(
551551

552552
add_header_macro(
553553
sys_sendfile
554-
../libc/newhdrgen/yaml/sys/sys_sendfile.yaml
554+
../libc/newhdrgen/yaml/sys/sendfile.yaml
555555
sys/sendfile.h.def
556556
sys/sendfile.h
557557
DEPENDS
@@ -563,7 +563,7 @@ add_header_macro(
563563

564564
add_header_macro(
565565
sys_socket
566-
../libc/newhdrgen/yaml/sys/sys_socket.yaml
566+
../libc/newhdrgen/yaml/sys/socket.yaml
567567
sys/socket.h.def
568568
sys/socket.h
569569
DEPENDS
@@ -577,7 +577,7 @@ add_header_macro(
577577

578578
add_header_macro(
579579
sys_statvfs
580-
../libc/newhdrgen/yaml/sys/sys_statvfs.yaml
580+
../libc/newhdrgen/yaml/sys/statvfs.yaml
581581
sys/statvfs.h.def
582582
sys/statvfs.h
583583
DEPENDS
@@ -587,15 +587,15 @@ add_header_macro(
587587

588588
add_header_macro(
589589
sys_syscall
590-
../libc/newhdrgen/yaml/sys/sys_syscall.yaml
590+
../libc/newhdrgen/yaml/sys/syscall.yaml
591591
sys/syscall.h.def
592592
sys/syscall.h
593593
DEPENDS
594594
)
595595

596596
add_header_macro(
597597
sys_time
598-
../libc/newhdrgen/yaml/sys/sys_time.yaml
598+
../libc/newhdrgen/yaml/sys/time.yaml
599599
sys/time.h.def
600600
sys/time.h
601601
DEPENDS
@@ -606,7 +606,7 @@ add_header_macro(
606606

607607
add_header_macro(
608608
sys_types
609-
../libc/newhdrgen/yaml/sys/sys_types.yaml
609+
../libc/newhdrgen/yaml/sys/types.yaml
610610
sys/types.h.def
611611
sys/types.h
612612
DEPENDS
@@ -636,7 +636,7 @@ add_header_macro(
636636

637637
add_header_macro(
638638
sys_utsname
639-
../libc/newhdrgen/yaml/sys/sys_utsname.yaml
639+
../libc/newhdrgen/yaml/sys/utsname.yaml
640640
sys/utsname.h.def
641641
sys/utsname.h
642642
DEPENDS
@@ -646,7 +646,7 @@ add_header_macro(
646646

647647
add_header_macro(
648648
sys_wait
649-
../libc/newhdrgen/yaml/sys/sys_wait.yaml
649+
../libc/newhdrgen/yaml/sys/wait.yaml
650650
sys/wait.h.def
651651
sys/wait.h
652652
DEPENDS
@@ -776,4 +776,4 @@ if(LLVM_LIBC_FULL_BUILD)
776776
-P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
777777
# Stripping is a no-op for headers
778778
add_custom_target(install-libc-headers-stripped DEPENDS install-libc-headers)
779-
endif()
779+
endif()

0 commit comments

Comments
 (0)