[libc-commits] [libc] [libc][newhdrgen] removing trailing spaces -- yaml (PR #102043)
via libc-commits
libc-commits at lists.llvm.org
Mon Aug 5 12:23:54 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (aaryanshukla)
<details>
<summary>Changes</summary>
---
Patch is 135.54 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/102043.diff
47 Files Affected:
- (modified) libc/newhdrgen/CMakeLists.txt (+1-1)
- (modified) libc/newhdrgen/tests/input/test_small.yaml (+7-7)
- (modified) libc/newhdrgen/yaml/arpa/inet.yaml (+4-4)
- (modified) libc/newhdrgen/yaml/assert.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/ctype.yaml (+16-16)
- (modified) libc/newhdrgen/yaml/dirent.yaml (+6-6)
- (modified) libc/newhdrgen/yaml/errno.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/fcntl.yaml (+5-5)
- (modified) libc/newhdrgen/yaml/features.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/fenv.yaml (+20-20)
- (modified) libc/newhdrgen/yaml/float.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/gpu/rpc.yaml (+2-2)
- (modified) libc/newhdrgen/yaml/inttypes.yaml (+4-4)
- (modified) libc/newhdrgen/yaml/limits.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/math.yaml (+288-288)
- (modified) libc/newhdrgen/yaml/pthread.yaml (+47-47)
- (modified) libc/newhdrgen/yaml/sched.yaml (+13-13)
- (modified) libc/newhdrgen/yaml/search.yaml (+6-6)
- (modified) libc/newhdrgen/yaml/setjmp.yaml (+3-3)
- (modified) libc/newhdrgen/yaml/signal.yaml (+16-16)
- (modified) libc/newhdrgen/yaml/spawn.yaml (+6-6)
- (modified) libc/newhdrgen/yaml/stdbit.yaml (+65-65)
- (modified) libc/newhdrgen/yaml/stdckdint.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/stdfix.yaml (+31-31)
- (modified) libc/newhdrgen/yaml/stdint.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/stdio.yaml (+70-70)
- (modified) libc/newhdrgen/yaml/stdlib.yaml (+39-39)
- (modified) libc/newhdrgen/yaml/string.yaml (+39-39)
- (modified) libc/newhdrgen/yaml/strings.yaml (+7-7)
- (modified) libc/newhdrgen/yaml/sys/auxv.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/sys/epoll.yaml (+6-6)
- (modified) libc/newhdrgen/yaml/sys/mman.yaml (+14-14)
- (modified) libc/newhdrgen/yaml/sys/random.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/sys/resource.yaml (+2-2)
- (modified) libc/newhdrgen/yaml/sys/select.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/sys/sendfile.yaml (+7-7)
- (modified) libc/newhdrgen/yaml/sys/socket.yaml (+2-2)
- (modified) libc/newhdrgen/yaml/sys/stat.yaml (+8-8)
- (modified) libc/newhdrgen/yaml/sys/statvfs.yaml (+3-3)
- (modified) libc/newhdrgen/yaml/sys/utsname.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/sys/wait.yaml (+4-4)
- (modified) libc/newhdrgen/yaml/termios.yaml (+12-12)
- (modified) libc/newhdrgen/yaml/threads.yaml (+18-18)
- (modified) libc/newhdrgen/yaml/time.yaml (+10-10)
- (modified) libc/newhdrgen/yaml/uchar.yaml (+1-1)
- (modified) libc/newhdrgen/yaml/unistd.yaml (+41-41)
- (modified) libc/newhdrgen/yaml/wchar.yaml (+1-1)
``````````diff
diff --git a/libc/newhdrgen/CMakeLists.txt b/libc/newhdrgen/CMakeLists.txt
index f8d003f8425bd..523f8c2609124 100644
--- a/libc/newhdrgen/CMakeLists.txt
+++ b/libc/newhdrgen/CMakeLists.txt
@@ -8,7 +8,7 @@ if(LLVM_LIBC_FULL_BUILD)
NAME newhdrgen_integration_test
COMMAND python3 ${NEWHDGEN_TESTS_DIR}/test_integration.py --output_dir ${TEST_OUTPUT_DIR}
)
-
+
add_custom_target(check-newhdrgen
COMMAND ${CMAKE_CTEST_COMMAND} -R newhdrgen_integration_test --output-on-failure
)
diff --git a/libc/newhdrgen/tests/input/test_small.yaml b/libc/newhdrgen/tests/input/test_small.yaml
index a2e96939b4be0..772552faf81dc 100644
--- a/libc/newhdrgen/tests/input/test_small.yaml
+++ b/libc/newhdrgen/tests/input/test_small.yaml
@@ -21,14 +21,14 @@ functions:
- name: func_a
return_type: void
arguments: []
- standards:
+ standards:
- stdc
- attributes:
+ attributes:
- CONST_FUNC_A
- name: func_b
return_type: float128
arguments: []
- standards:
+ standards:
- stdc
guard: LIBC_TYPES_HAS_FLOAT128
- name: func_c
@@ -36,7 +36,7 @@ functions:
arguments:
- type: int
- type: float
- standards:
+ standards:
- stdc
guard: LIBC_TYPES_HAS_FLOAT16
- name: func_d
@@ -44,14 +44,14 @@ functions:
arguments:
- type: int
- type: float
- standards:
+ standards:
- stdc
guard: LIBC_TYPES_HAS_FLOAT16
- name: func_e
return_type: _Float16
arguments:
- type: float128
- standards:
+ standards:
- stdc
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
- name: func_f
@@ -60,7 +60,7 @@ functions:
- type: int
- type: double
- type: float
- standards:
+ standards:
- stdc
diff --git a/libc/newhdrgen/yaml/arpa/inet.yaml b/libc/newhdrgen/yaml/arpa/inet.yaml
index c01235d4327a5..cb366e0f5d694 100644
--- a/libc/newhdrgen/yaml/arpa/inet.yaml
+++ b/libc/newhdrgen/yaml/arpa/inet.yaml
@@ -5,25 +5,25 @@ enums: []
objects: []
functions:
- name: htonl
- standards:
+ standards:
- POSIX
return_type: uint32_t
arguments:
- type: uint32_t
- name: htons
- standards:
+ standards:
- POSIX
return_type: uint16_t
arguments:
- type: uint16_t
- name: ntohl
- standards:
+ standards:
- POSIX
return_type: uint32_t
arguments:
- type: uint32_t
- name: ntohs
- standards:
+ standards:
- POSIX
return_type: uint16_t
arguments:
diff --git a/libc/newhdrgen/yaml/assert.yaml b/libc/newhdrgen/yaml/assert.yaml
index 58d6c413cebdc..f740554488ed5 100644
--- a/libc/newhdrgen/yaml/assert.yaml
+++ b/libc/newhdrgen/yaml/assert.yaml
@@ -4,7 +4,7 @@ types: []
enums: []
objects: []
functions:
- - name: __assert_fail
+ - name: __assert_fail
standards:
- llvm_libc_ext
return_type: _Noreturn void
diff --git a/libc/newhdrgen/yaml/ctype.yaml b/libc/newhdrgen/yaml/ctype.yaml
index a4a3048ede872..e5b4d11422d98 100644
--- a/libc/newhdrgen/yaml/ctype.yaml
+++ b/libc/newhdrgen/yaml/ctype.yaml
@@ -5,98 +5,98 @@ enums: []
objects: []
functions:
- name: isalnum
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isalpha
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isblank
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: iscntrl
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isdigit
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isgraph
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: islower
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isprint
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: ispunct
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isspace
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isupper
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: isxdigit
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: tolower
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: toupper
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
functions:
- name: isascii
- standards:
+ standards:
- POSIX
return_type: int
arguments:
- type: int
- name: toascii
- standards:
+ standards:
- GNUExtensions
return_type: int
arguments:
diff --git a/libc/newhdrgen/yaml/dirent.yaml b/libc/newhdrgen/yaml/dirent.yaml
index 84a539a966345..cdccf6a0c7f29 100644
--- a/libc/newhdrgen/yaml/dirent.yaml
+++ b/libc/newhdrgen/yaml/dirent.yaml
@@ -8,38 +8,38 @@ enums: []
objects: []
functions:
- name: alphasort
- standards:
+ standards:
- POSIX
return_type: int
arguments:
- type: const struct dirent **
- type: const struct dirent **
- name: closedir
- standards:
+ standards:
- POSIX
return_type: int
arguments:
- type: DIR *
- name: dirfd
- standards:
+ standards:
- POSIX
return_type: int
arguments:
- type: DIR *
- name: fdopendir
- standards:
+ standards:
- POSIX
return_type: DIR *
arguments:
- type: int
- name: opendir
- standards:
+ standards:
- POSIX
return_type: DIR *
arguments:
- type: const char *
- name: readdir
- standards:
+ standards:
- POSIX
return_type: struct dirent *
arguments:
diff --git a/libc/newhdrgen/yaml/errno.yaml b/libc/newhdrgen/yaml/errno.yaml
index 5d8de90f035bd..a894063a1ee2c 100644
--- a/libc/newhdrgen/yaml/errno.yaml
+++ b/libc/newhdrgen/yaml/errno.yaml
@@ -1,5 +1,5 @@
header: errno.h
-standards:
+standards:
- stdc
- Linux
- POSIX
diff --git a/libc/newhdrgen/yaml/fcntl.yaml b/libc/newhdrgen/yaml/fcntl.yaml
index 3cb9741256a3d..a7bd1997b0eac 100644
--- a/libc/newhdrgen/yaml/fcntl.yaml
+++ b/libc/newhdrgen/yaml/fcntl.yaml
@@ -1,20 +1,20 @@
header: fcntl.h
macros: []
-types:
+types:
- type_name: off_t
- type_name: mode_t
enums: []
objects: []
functions:
- name: creat
- standards:
+ standards:
- POSIX
return_type: int
arguments:
- type: const char *
- type: mode_t
- name: fcntl
- standards:
+ standards:
- POSIX
return_type: int
arguments:
@@ -22,7 +22,7 @@ functions:
- type: int
- type: ...
- name: open
- standards:
+ standards:
- POSIX
return_type: int
arguments:
@@ -30,7 +30,7 @@ functions:
- type: int
- type: ...
- name: openat
- standards:
+ standards:
- POSIX
return_type: int
arguments:
diff --git a/libc/newhdrgen/yaml/features.yaml b/libc/newhdrgen/yaml/features.yaml
index 86bc0acfe89ed..a18af22edb743 100644
--- a/libc/newhdrgen/yaml/features.yaml
+++ b/libc/newhdrgen/yaml/features.yaml
@@ -1,5 +1,5 @@
header: features.h
-standards:
+standards:
- stdc
macros: []
types: []
diff --git a/libc/newhdrgen/yaml/fenv.yaml b/libc/newhdrgen/yaml/fenv.yaml
index e7ff8cdf4e3b0..95eb93c883e3c 100644
--- a/libc/newhdrgen/yaml/fenv.yaml
+++ b/libc/newhdrgen/yaml/fenv.yaml
@@ -7,101 +7,101 @@ enums: []
objects: []
functions:
- name: feclearexcept
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: fetestexcept
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: fetestexceptflag
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: const fexcept_t *
- type: int
- name: feraiseexcept
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: fesetround
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: fegetround
- standards:
+ standards:
- stdc
return_type: int
arguments: []
- name: fegetenv
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: fenv_t *
- name: fesetenv
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: const fenv_t *
- name: fegetexceptflag
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: fexcept_t *
- type: int
- name: fesetexcept
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: int
- name: fesetexceptflag
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: const fexcept_t *
- type: int
- name: feholdexcept
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: fenv_t *
- name: feupdateenv
- standards:
+ standards:
- stdc
return_type: int
arguments:
- type: const fenv_t *
- name: fedisableexcept
- standards:
+ standards:
- GNUExtensions
- return_type: int
- arguments:
- - type: int
+ return_type: int
+ arguments:
+ - type: int
guard: null
- name: feenableexcept
- standards:
+ standards:
- GNUExtensions
- return_type: int
+ return_type: int
arguments:
- type: int
attributes: []
- name: fegetexcept
- standards:
+ standards:
- GNUExtensions
return_type: int
arguments: []
diff --git a/libc/newhdrgen/yaml/float.yaml b/libc/newhdrgen/yaml/float.yaml
index fcbede018113c..63639a6e8ed13 100644
--- a/libc/newhdrgen/yaml/float.yaml
+++ b/libc/newhdrgen/yaml/float.yaml
@@ -1,5 +1,5 @@
header: float.h
-standards:
+standards:
- stdc
macros: []
types: []
diff --git a/libc/newhdrgen/yaml/gpu/rpc.yaml b/libc/newhdrgen/yaml/gpu/rpc.yaml
index 8a096db8784ec..57473f72c3827 100644
--- a/libc/newhdrgen/yaml/gpu/rpc.yaml
+++ b/libc/newhdrgen/yaml/gpu/rpc.yaml
@@ -5,7 +5,7 @@ enums: []
objects: []
functions:
- name: rpc_host_call
- standards:
+ standards:
- GPUExtensions
return_type: void
arguments:
@@ -13,7 +13,7 @@ functions:
- type: void *
- type: size_t
- name: rpc_fprintf
- standards:
+ standards:
- GPUExtensions
return_type: int
arguments:
diff --git a/libc/newhdrgen/yaml/inttypes.yaml b/libc/newhdrgen/yaml/inttypes.yaml
index 6e3d1346f6006..ad636cc5121a1 100644
--- a/libc/newhdrgen/yaml/inttypes.yaml
+++ b/libc/newhdrgen/yaml/inttypes.yaml
@@ -6,20 +6,20 @@ enums: []
objects: []
functions:
- name: imaxabs
- standards:
+ standards:
- stdc
return_type: intmax_t
arguments:
- type: intmax_t
- name: imaxdiv
- standards:
+ standards:
- stdc
return_type: imaxdiv_t
arguments:
- type: intmax_t
- type: intmax_t
- name: strtoimax
- standards:
+ standards:
- stdc
return_type: intmax_t
arguments:
@@ -27,7 +27,7 @@ functions:
- type: char * *__restrict
- type: int
- name: strtoumax
- standards:
+ standards:
- stdc
return_type: uintmax_t
arguments:
diff --git a/libc/newhdrgen/yaml/limits.yaml b/libc/newhdrgen/yaml/limits.yaml
index 9d0f14fa3095d..bf33ed24e7a8d 100644
--- a/libc/newhdrgen/yaml/limits.yaml
+++ b/libc/newhdrgen/yaml/limits.yaml
@@ -1,5 +1,5 @@
header: limits.h
-standards:
+standards:
- stdc
macros: []
types: []
diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml
index ce562c653a6d2..36c82be85b3ea 100644
--- a/libc/newhdrgen/yaml/math.yaml
+++ b/libc/newhdrgen/yaml/math.yaml
@@ -20,306 +20,306 @@ functions:
arguments:
- type: float
- name: copysign
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: copysignf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: copysignl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: ceil
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- name: ceilf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- name: ceill
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- name: fabs
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- name: fabsf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- name: fabsl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- name: fdim
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fdimf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fdiml
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: floor
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- name: floorf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- name: floorl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- name: fmin
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fminf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fminl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fmax
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fmaxf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fmaxl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fmaximum
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fmaximumf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fmaximuml
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fmaximum_num
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fmaximum_numf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fmaximum_numl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fmaximum_mag
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fmaximum_magf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fmaximum_magl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fmaximum_mag_num
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fmaximum_mag_numf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fmaximum_mag_numl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fminimum
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fminimumf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fminimuml
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fminimum_num
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fminimum_numf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fminimum_mag
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fminimum_magf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fminimum_magl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fminimum_mag_num
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fminimum_mag_numf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fminimum_mag_numl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
- type: long double
- type: long double
- name: fma
- standards:
+ standards:
- stdc
return_type: double
arguments:
@@ -327,7 +327,7 @@ functions:
- type: double
- type: double
- name: fmaf
- standards:
+ standards:
- stdc
return_type: float
arguments:
@@ -335,21 +335,21 @@ functions:
- type: float
- type: float
- name: fmod
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: double
- name: fmodf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: float
- name: fmodl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
@@ -377,28 +377,28 @@ functions:
- type: long double
- type: long double
- name: frexp
- standards:
+ standards:
- stdc
return_type: double
arguments:
- type: double
- type: int *
- name: frexpf
- standards:
+ standards:
- stdc
return_type: float
arguments:
- type: float
- type: int *
- name: frexpl
- standards:
+ standards:
- stdc
return_type: long double
arguments:
...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/102043
More information about the libc-commits
mailing list