[libc-commits] [libc] [libc][NFC] Strip all training whitespace (PR #124163)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Jan 23 09:50:21 PST 2025


https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/124163

None

>From a41eeb2e0040867695dc2b9593e1195e33ccb5a0 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Thu, 23 Jan 2025 11:47:35 -0600
Subject: [PATCH] [libc][NFC] Strip all training whitespace

---
 libc/benchmarks/gpu/CMakeLists.txt              |  2 +-
 libc/config/baremetal/riscv/entrypoints.txt     |  2 +-
 libc/config/linux/aarch64/entrypoints.txt       |  2 +-
 libc/config/linux/arm/entrypoints.txt           |  4 ++--
 libc/config/linux/riscv/entrypoints.txt         |  4 ++--
 libc/config/linux/x86_64/entrypoints.txt        |  6 +++---
 libc/docs/dev/printf_behavior.rst               |  2 +-
 libc/docs/dev/undefined_behavior.rst            |  4 ++--
 libc/docs/gpu/rpc.rst                           |  4 ++--
 libc/docs/platform_support.rst                  |  2 +-
 libc/fuzzing/__support/CMakeLists.txt           |  2 +-
 libc/include/llvm-libc-types/CMakeLists.txt     | 12 ++++++------
 libc/include/stdfix.yaml                        |  2 +-
 libc/include/sys/uio.yaml                       |  2 +-
 libc/src/__support/CPP/CMakeLists.txt           |  4 ++--
 libc/src/__support/threads/linux/CMakeLists.txt |  2 +-
 libc/src/__support/threads/spin_lock.h          |  2 +-
 libc/src/__support/time/windows/CMakeLists.txt  |  2 +-
 libc/src/math/nvptx/CMakeLists.txt              |  2 +-
 libc/src/stdlib/CMakeLists.txt                  |  6 +++---
 libc/test/src/__support/File/CMakeLists.txt     |  2 +-
 libc/test/src/math/CMakeLists.txt               |  4 ++--
 libc/test/src/math/smoke/CMakeLists.txt         |  2 +-
 libc/test/src/signal/CMakeLists.txt             |  6 +++---
 libc/test/src/stdfix/CMakeLists.txt             |  2 +-
 libc/test/src/sys/resource/CMakeLists.txt       |  2 +-
 libc/test/src/sys/select/CMakeLists.txt         |  4 ++--
 libc/test/src/sys/sendfile/CMakeLists.txt       |  2 +-
 libc/test/src/sys/wait/CMakeLists.txt           |  4 ++--
 libc/test/src/unistd/CMakeLists.txt             |  4 ++--
 libc/utils/docgen/aio.yaml                      |  2 +-
 libc/utils/docgen/sys/stat.yaml                 |  2 +-
 libc/utils/docgen/termios.yaml                  | 10 +++++-----
 libc/utils/mathtools/worst_case.sollya          |  4 ++--
 34 files changed, 59 insertions(+), 59 deletions(-)

diff --git a/libc/benchmarks/gpu/CMakeLists.txt b/libc/benchmarks/gpu/CMakeLists.txt
index 5fa3e44e8d48c3..b58f4fd8b1a429 100644
--- a/libc/benchmarks/gpu/CMakeLists.txt
+++ b/libc/benchmarks/gpu/CMakeLists.txt
@@ -10,7 +10,7 @@ function(add_benchmark benchmark_name)
     "LINK_LIBRARIES;DEPENDS" # Multi-value arguments
     ${ARGN}
   )
-  
+
   if(NOT libc.src.time.clock IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS)
     message(FATAL_ERROR "target does not support clock")
   endif()
diff --git a/libc/config/baremetal/riscv/entrypoints.txt b/libc/config/baremetal/riscv/entrypoints.txt
index 6dc5df830eb000..667ab40dca9998 100644
--- a/libc/config/baremetal/riscv/entrypoints.txt
+++ b/libc/config/baremetal/riscv/entrypoints.txt
@@ -463,7 +463,7 @@ if(LIBC_COMPILER_HAS_FIXED_POINT)
     libc.src.stdfix.kbits
     libc.src.stdfix.ukbits
     libc.src.stdfix.lkbits
-    libc.src.stdfix.ulkbits   
+    libc.src.stdfix.ulkbits
   )
 endif()
 
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index f5ba3414117682..6e5ecba6200a4b 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -439,7 +439,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.math.fabs
     libc.src.math.fabsf
     libc.src.math.fabsl
-    libc.src.math.fadd 
+    libc.src.math.fadd
     libc.src.math.faddl
     libc.src.math.fadd
     libc.src.math.fdim
diff --git a/libc/config/linux/arm/entrypoints.txt b/libc/config/linux/arm/entrypoints.txt
index 83f4dfaaa2d0f2..42ea803baac047 100644
--- a/libc/config/linux/arm/entrypoints.txt
+++ b/libc/config/linux/arm/entrypoints.txt
@@ -215,7 +215,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.complex.cproj
     libc.src.complex.cprojf
     libc.src.complex.cprojl
-    
+
     # fenv.h entrypoints
     libc.src.fenv.feclearexcept
     libc.src.fenv.fedisableexcept
@@ -268,7 +268,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.math.fabs
     libc.src.math.fabsf
     libc.src.math.fabsl
-    libc.src.math.fadd 
+    libc.src.math.fadd
     libc.src.math.faddl
     libc.src.math.fadd
     libc.src.math.fdim
diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt
index 49a8d61b938027..36339126b1f22f 100644
--- a/libc/config/linux/riscv/entrypoints.txt
+++ b/libc/config/linux/riscv/entrypoints.txt
@@ -432,7 +432,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.math.fabs
     libc.src.math.fabsf
     libc.src.math.fabsl
-    libc.src.math.fadd 
+    libc.src.math.fadd
     libc.src.math.faddl
     libc.src.math.fadd
     libc.src.math.fdim
@@ -630,7 +630,7 @@ if(LIBC_TYPES_HAS_CFLOAT128)
   )
 endif()
 
-if(LIBC_TYPES_HAS_FLOAT128)    
+if(LIBC_TYPES_HAS_FLOAT128)
   list(APPEND TARGET_LIBM_ENTRYPOINTS
     # math.h C23 _Float128 entrypoints
     libc.src.math.canonicalizef128
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 0c1ae9561a7e69..6662175c530217 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -377,7 +377,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.complex.cproj
     libc.src.complex.cprojf
     libc.src.complex.cprojl
-    
+
     # fenv.h entrypoints
     libc.src.fenv.feclearexcept
     libc.src.fenv.fedisableexcept
@@ -440,7 +440,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.math.fabs
     libc.src.math.fabsf
     libc.src.math.fabsl
-    libc.src.math.fadd 
+    libc.src.math.fadd
     libc.src.math.faddl
     libc.src.math.fadd
     libc.src.math.fdim
@@ -756,7 +756,7 @@ if(LIBC_TYPES_HAS_CFLOAT128)
 endif()
 
 if(LIBC_TYPES_HAS_FLOAT128)
-  list(APPEND TARGET_LIBM_ENTRYPOINTS    
+  list(APPEND TARGET_LIBM_ENTRYPOINTS
     # math.h C23 _Float128 entrypoints
     libc.src.math.canonicalizef128
     libc.src.math.ceilf128
diff --git a/libc/docs/dev/printf_behavior.rst b/libc/docs/dev/printf_behavior.rst
index f5507c4d167587..01ab128a1f238b 100644
--- a/libc/docs/dev/printf_behavior.rst
+++ b/libc/docs/dev/printf_behavior.rst
@@ -173,7 +173,7 @@ If a number passed as a field width or precision value is out of range for an
 int, then it will be treated as the largest value in the int range
 (e.g. "%-999999999999.999999999999s" is the same as "%-2147483647.2147483647s").
 
-If the field width is set to INT_MIN by using the '*' form, 
+If the field width is set to INT_MIN by using the '*' form,
 e.g. printf("%*d", INT_MIN, 1), it will be treated as INT_MAX, since -INT_MIN is
 not representable as an int.
 
diff --git a/libc/docs/dev/undefined_behavior.rst b/libc/docs/dev/undefined_behavior.rst
index d0d882b7010e37..60fda51e86452c 100644
--- a/libc/docs/dev/undefined_behavior.rst
+++ b/libc/docs/dev/undefined_behavior.rst
@@ -78,8 +78,8 @@ POSIX.1 leaves that when the name of a shared memory object does not begin with
 Handling of NULL arguments to the 's' format specifier
 ------------------------------------------------------
 The C standard does not specify behavior for ``printf("%s", NULL)``. We will
-print the string literal ``(null)`` unless using the 
-``LIBC_COPT_PRINTF_NO_NULLPTR_CHECKS`` option described in :ref:`printf 
+print the string literal ``(null)`` unless using the
+``LIBC_COPT_PRINTF_NO_NULLPTR_CHECKS`` option described in :ref:`printf
 behavior<printf_behavior>`.
 
 Unknown Math Rounding Direction
diff --git a/libc/docs/gpu/rpc.rst b/libc/docs/gpu/rpc.rst
index 0d169c7db9a50f..3f312bb9281b38 100644
--- a/libc/docs/gpu/rpc.rst
+++ b/libc/docs/gpu/rpc.rst
@@ -253,7 +253,7 @@ linked in by forwarding the static library to the device-side link job.
 Extensions
 ----------
 
-The opcode is a 32-bit integer that must be unique to the requested operation. 
-All opcodes used by ``libc`` internally have the character ``c`` in the most 
+The opcode is a 32-bit integer that must be unique to the requested operation.
+All opcodes used by ``libc`` internally have the character ``c`` in the most
 significant byte. Any other opcode is available for use outside of the ``libc``
 implementation.
diff --git a/libc/docs/platform_support.rst b/libc/docs/platform_support.rst
index 2ce3d7282b304f..4643d82e2308b2 100644
--- a/libc/docs/platform_support.rst
+++ b/libc/docs/platform_support.rst
@@ -12,7 +12,7 @@ For Linux, we support kernel versions as listed on
 date), ``stable``, and ``mainline`` versions. We actively adopt new features
 from ``linux-next``.
 
-For Windows, we plan to support products within their lifecycle. Please refer to 
+For Windows, we plan to support products within their lifecycle. Please refer to
 `Search Product and Services Lifecycle Information <https://learn.microsoft.com/en-us/lifecycle/products/?products=windows>`_ for more information.
 
 LLVM-libc does not guarantee backward compatibility with operating systems that
diff --git a/libc/fuzzing/__support/CMakeLists.txt b/libc/fuzzing/__support/CMakeLists.txt
index d4b324db716f68..7742ee43860d53 100644
--- a/libc/fuzzing/__support/CMakeLists.txt
+++ b/libc/fuzzing/__support/CMakeLists.txt
@@ -22,7 +22,7 @@ add_libc_fuzzer(
     libc.src.__support.HashTable.table
   COMPILE_OPTIONS
     -D__LIBC_EXPLICIT_SIMD_OPT
-) 
+)
 
 # TODO: FreeListHeap uses the _end symbol which conflicts with the _end symbol
 # defined by GPU start.cpp files so for now we exclude this fuzzer on GPU.
diff --git a/libc/include/llvm-libc-types/CMakeLists.txt b/libc/include/llvm-libc-types/CMakeLists.txt
index ee734eafce3620..6cbaa1ac0b30c3 100644
--- a/libc/include/llvm-libc-types/CMakeLists.txt
+++ b/libc/include/llvm-libc-types/CMakeLists.txt
@@ -102,15 +102,15 @@ add_header(__getoptargv_t HDR __getoptargv_t.h)
 add_header(wchar_t HDR wchar_t.h)
 add_header(char8_t HDR char8_t.h)
 add_header(
-    char16_t 
-  HDR 
+    char16_t
+  HDR
     char16_t.h
   DEPENDS
     libc.include.llvm-libc-macros.stdint_macros
 )
 add_header(
-    char32_t 
-  HDR 
+    char32_t
+  HDR
     char32_t.h
   DEPENDS
     libc.include.llvm-libc-macros.stdint_macros
@@ -145,8 +145,8 @@ add_header(cfloat16 HDR cfloat16.h)
 add_header(fsblkcnt_t HDR fsblkcnt_t.h)
 add_header(fsfilcnt_t HDR fsfilcnt_t.h)
 add_header(
-  struct_statvfs 
-HDR 
+  struct_statvfs
+HDR
   struct_statvfs.h
 DEPENDS
   .fsblkcnt_t
diff --git a/libc/include/stdfix.yaml b/libc/include/stdfix.yaml
index 7b3bdba082dd5c..9663ac0c7df4dc 100644
--- a/libc/include/stdfix.yaml
+++ b/libc/include/stdfix.yaml
@@ -1,7 +1,7 @@
 header: stdfix.h
 header_template: stdfix.h.def
 macros: []
-types: 
+types:
   - type_name: stdfix-types
 enums: []
 objects: []
diff --git a/libc/include/sys/uio.yaml b/libc/include/sys/uio.yaml
index 808d8ec790198e..87c5bdff48245c 100644
--- a/libc/include/sys/uio.yaml
+++ b/libc/include/sys/uio.yaml
@@ -1,7 +1,7 @@
 header: sys/uio.h
 header_template: uio.h.def
 macros: []
-types: 
+types:
   - type_name: struct_iovec
   - type_name: ssize_t
 enums: []
diff --git a/libc/src/__support/CPP/CMakeLists.txt b/libc/src/__support/CPP/CMakeLists.txt
index 15fad9de0ed6d2..d2ba00a5384da5 100644
--- a/libc/src/__support/CPP/CMakeLists.txt
+++ b/libc/src/__support/CPP/CMakeLists.txt
@@ -83,7 +83,7 @@ add_header_library(
     .string_view
     libc.hdr.func.free
     libc.hdr.func.malloc
-    libc.hdr.func.realloc 
+    libc.hdr.func.realloc
     libc.src.__support.common
     libc.src.__support.integer_to_string
     libc.src.string.memory_utils.inline_memcpy
@@ -203,7 +203,7 @@ add_object_library(
   DEPENDS
     libc.hdr.func.free
     libc.hdr.func.malloc
-    libc.hdr.func.aligned_alloc 
+    libc.hdr.func.aligned_alloc
     libc.src.__support.common
     libc.src.__support.macros.properties.os
 )
diff --git a/libc/src/__support/threads/linux/CMakeLists.txt b/libc/src/__support/threads/linux/CMakeLists.txt
index 47598d98c98863..364e7e2b905854 100644
--- a/libc/src/__support/threads/linux/CMakeLists.txt
+++ b/libc/src/__support/threads/linux/CMakeLists.txt
@@ -79,7 +79,7 @@ add_object_library(
     .futex_utils
     libc.config.app_h
     libc.include.sys_syscall
-    libc.hdr.fcntl_macros  
+    libc.hdr.fcntl_macros
     libc.src.errno.errno
     libc.src.__support.CPP.atomic
     libc.src.__support.CPP.stringstream
diff --git a/libc/src/__support/threads/spin_lock.h b/libc/src/__support/threads/spin_lock.h
index e176ad9eeac2ab..3b424b30425a76 100644
--- a/libc/src/__support/threads/spin_lock.h
+++ b/libc/src/__support/threads/spin_lock.h
@@ -34,7 +34,7 @@ class SpinLock {
     // .LBB0_2:                          |                  jmp     .LBB0_4
     //         isb                       |         .LBB0_2:
     // .LBB0_3:                          |                  pause
-    //         ldrb    w9, [x0]          |         .LBB0_3:       
+    //         ldrb    w9, [x0]          |         .LBB0_3:
     //         tbnz    w9, #0, .LBB0_2   |                  movzx   eax, byte ptr [rdi]
     //         b       .LBB0_1           |                  test    al, 1
     // .LBB0_4:                          |                  jne     .LBB0_2
diff --git a/libc/src/__support/time/windows/CMakeLists.txt b/libc/src/__support/time/windows/CMakeLists.txt
index dd0ac2f2f79aee..f31dfbdf26040c 100644
--- a/libc/src/__support/time/windows/CMakeLists.txt
+++ b/libc/src/__support/time/windows/CMakeLists.txt
@@ -1,5 +1,5 @@
 add_header_library(
-  performance_counter 
+  performance_counter
   HDRS
     performance_counter.h
   DEPENDS
diff --git a/libc/src/math/nvptx/CMakeLists.txt b/libc/src/math/nvptx/CMakeLists.txt
index 577d8147df433c..e85e17b6701fe3 100644
--- a/libc/src/math/nvptx/CMakeLists.txt
+++ b/libc/src/math/nvptx/CMakeLists.txt
@@ -9,7 +9,7 @@ if(CUDAToolkit_FOUND)
   if (EXISTS ${libdevice_path})
     message(STATUS "Found the CUDA device library. Implementations falling back "
                    "to the vendor libraries will be resolved statically.")
-    set(bitcode_link_flags 
+    set(bitcode_link_flags
         "SHELL:-Xclang -mlink-builtin-bitcode -Xclang ${libdevice_path}")
   endif()
 else()
diff --git a/libc/src/stdlib/CMakeLists.txt b/libc/src/stdlib/CMakeLists.txt
index 40ba9ead9a7ae6..73a9fbf1e2ddc3 100644
--- a/libc/src/stdlib/CMakeLists.txt
+++ b/libc/src/stdlib/CMakeLists.txt
@@ -539,7 +539,7 @@ add_entrypoint_object(
     libc.src.__support.OSUtil.osutil
 )
 
-# TODO: Move all exit functions to linux specific 
+# TODO: Move all exit functions to linux specific
 
 if(TARGET libc.src.__support.threads.mutex)
 add_header_library(
@@ -563,7 +563,7 @@ add_entrypoint_object(
   HDRS
     atexit.h
   CXX_STANDARD
-    20 # For constinit 
+    20 # For constinit
   DEPENDS
     .exit_handler
 )
@@ -575,7 +575,7 @@ add_entrypoint_object(
   HDRS
     at_quick_exit.h
   CXX_STANDARD
-    20 # For constinit 
+    20 # For constinit
   DEPENDS
     .exit_handler
     .atexit
diff --git a/libc/test/src/__support/File/CMakeLists.txt b/libc/test/src/__support/File/CMakeLists.txt
index 04205166bf5337..a11f52978f35f6 100644
--- a/libc/test/src/__support/File/CMakeLists.txt
+++ b/libc/test/src/__support/File/CMakeLists.txt
@@ -16,7 +16,7 @@ add_libc_test(
   DEPENDS
     libc.include.stdio
     libc.hdr.types.size_t
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.__support.CPP.new
     libc.src.__support.File.file
 )
diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt
index ae8518ee4b4cc1..bbcdf2363c1e2b 100644
--- a/libc/test/src/math/CMakeLists.txt
+++ b/libc/test/src/math/CMakeLists.txt
@@ -104,7 +104,7 @@ add_fp_unittest(
   SRCS
     sinf16_test.cpp
   DEPENDS
-    libc.src.math.sinf16  
+    libc.src.math.sinf16
 )
 
 add_fp_unittest(
@@ -198,7 +198,7 @@ add_fp_unittest(
   SRCS
     tanf16_test.cpp
   DEPENDS
-    libc.src.math.tanf16  
+    libc.src.math.tanf16
 )
 
 add_fp_unittest(
diff --git a/libc/test/src/math/smoke/CMakeLists.txt b/libc/test/src/math/smoke/CMakeLists.txt
index e23e7f41222d4a..e4501eb75fa48a 100644
--- a/libc/test/src/math/smoke/CMakeLists.txt
+++ b/libc/test/src/math/smoke/CMakeLists.txt
@@ -129,7 +129,7 @@ add_fp_unittest(
     tanf16_test.cpp
   DEPENDS
     libc.src.errno.errno
-    libc.src.math.tanf16 
+    libc.src.math.tanf16
 )
 
 add_fp_unittest(
diff --git a/libc/test/src/signal/CMakeLists.txt b/libc/test/src/signal/CMakeLists.txt
index 87aa42faae8e5f..a27f5b8f1000e9 100644
--- a/libc/test/src/signal/CMakeLists.txt
+++ b/libc/test/src/signal/CMakeLists.txt
@@ -62,7 +62,7 @@ add_libc_unittest(
     sigaddset_test.cpp
   DEPENDS
     libc.include.signal
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.signal.sigaddset
     libc.test.UnitTest.ErrnoSetterMatcher
 )
@@ -89,7 +89,7 @@ add_libc_unittest(
     sigfillset_test.cpp
   DEPENDS
     libc.include.signal
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.signal.raise
     libc.src.signal.sigfillset
     libc.src.signal.sigprocmask
@@ -104,7 +104,7 @@ add_libc_unittest(
     sigdelset_test.cpp
   DEPENDS
     libc.include.signal
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.signal.raise
     libc.src.signal.sigdelset
     libc.src.signal.sigfillset
diff --git a/libc/test/src/stdfix/CMakeLists.txt b/libc/test/src/stdfix/CMakeLists.txt
index 60e38c9098c387..90d20438edb4be 100644
--- a/libc/test/src/stdfix/CMakeLists.txt
+++ b/libc/test/src/stdfix/CMakeLists.txt
@@ -57,7 +57,7 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
       libc.src.stdfix.round${suffix}
       libc.src.__support.fixed_point.fx_bits
   )
-  
+
   add_libc_test(
     ${suffix}bits_test
     SUITE
diff --git a/libc/test/src/sys/resource/CMakeLists.txt b/libc/test/src/sys/resource/CMakeLists.txt
index 32186de4b111be..0a0f35bcbe556e 100644
--- a/libc/test/src/sys/resource/CMakeLists.txt
+++ b/libc/test/src/sys/resource/CMakeLists.txt
@@ -11,7 +11,7 @@ add_libc_unittest(
   DEPENDS
     libc.include.fcntl
     libc.include.sys_resource
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.fcntl.open
     libc.src.sys.resource.getrlimit
     libc.src.sys.resource.setrlimit
diff --git a/libc/test/src/sys/select/CMakeLists.txt b/libc/test/src/sys/select/CMakeLists.txt
index 2b465d32c2c33e..ff677926c7b6e1 100644
--- a/libc/test/src/sys/select/CMakeLists.txt
+++ b/libc/test/src/sys/select/CMakeLists.txt
@@ -9,7 +9,7 @@ add_libc_unittest(
     select_ui_test.cpp
   DEPENDS
     libc.include.unistd
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.sys.select.select
     libc.src.unistd.read
 )
@@ -22,7 +22,7 @@ add_libc_unittest(
     select_failure_test.cpp
   DEPENDS
     libc.include.unistd
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.sys.select.select
     libc.src.unistd.read
     libc.test.UnitTest.ErrnoSetterMatcher
diff --git a/libc/test/src/sys/sendfile/CMakeLists.txt b/libc/test/src/sys/sendfile/CMakeLists.txt
index ceaa4accdd06ef..06c61bca4255eb 100644
--- a/libc/test/src/sys/sendfile/CMakeLists.txt
+++ b/libc/test/src/sys/sendfile/CMakeLists.txt
@@ -11,7 +11,7 @@ add_libc_unittest(
   DEPENDS
     libc.hdr.fcntl_macros
     libc.include.sys_stat
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.fcntl.open
     libc.src.sys.sendfile.sendfile
     libc.src.unistd.close
diff --git a/libc/test/src/sys/wait/CMakeLists.txt b/libc/test/src/sys/wait/CMakeLists.txt
index db737a46f0d0f3..9acd74d9ce32c5 100644
--- a/libc/test/src/sys/wait/CMakeLists.txt
+++ b/libc/test/src/sys/wait/CMakeLists.txt
@@ -8,7 +8,7 @@ add_libc_unittest(
     waitpid_test.cpp
   DEPENDS
     libc.include.sys_wait
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.sys.wait.waitpid
 )
 
@@ -20,6 +20,6 @@ add_libc_unittest(
     wait4_test.cpp
   DEPENDS
     libc.include.sys_wait
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.sys.wait.wait4
 )
diff --git a/libc/test/src/unistd/CMakeLists.txt b/libc/test/src/unistd/CMakeLists.txt
index c3eebdf2a877d3..b01cce931a1ebf 100644
--- a/libc/test/src/unistd/CMakeLists.txt
+++ b/libc/test/src/unistd/CMakeLists.txt
@@ -29,7 +29,7 @@ add_libc_unittest(
     libc.src.errno.errno
     libc.src.unistd.chdir
     libc.src.unistd.close
-    libc.src.fcntl.open 
+    libc.src.fcntl.open
     libc.test.UnitTest.ErrnoSetterMatcher
 )
 
@@ -427,7 +427,7 @@ add_libc_unittest(
     libc.include.unistd
     libc.hdr.fcntl_macros
     libc.include.sys_syscall
-    libc.src.errno.errno 
+    libc.src.errno.errno
     libc.src.unistd.__llvm_libc_syscall
     libc.test.UnitTest.ErrnoSetterMatcher
 )
diff --git a/libc/utils/docgen/aio.yaml b/libc/utils/docgen/aio.yaml
index 2c381558676a18..e30c76c9dc05c6 100644
--- a/libc/utils/docgen/aio.yaml
+++ b/libc/utils/docgen/aio.yaml
@@ -15,7 +15,7 @@ macros:
     in-latest-posix: ''
   LIO_WRITE:
     in-latest-posix: ''
-    
+
 functions:
   aio_cancel:
     in-latest-posix: ''
diff --git a/libc/utils/docgen/sys/stat.yaml b/libc/utils/docgen/sys/stat.yaml
index 86dc84a1e06d2e..112574f841350e 100644
--- a/libc/utils/docgen/sys/stat.yaml
+++ b/libc/utils/docgen/sys/stat.yaml
@@ -42,7 +42,7 @@ macros:
     in-latest-posix: ''
   S_IXGRP:
     in-latest-posix: ''
-  
+
   S_IRWXO:
     in-latest-posix: ''
   S_IROTH:
diff --git a/libc/utils/docgen/termios.yaml b/libc/utils/docgen/termios.yaml
index 81dd8da9f240cc..dd6cab6989edc3 100644
--- a/libc/utils/docgen/termios.yaml
+++ b/libc/utils/docgen/termios.yaml
@@ -31,7 +31,7 @@ macros:
     in-latest-posix: ''
   IGNBRK:
     in-latest-posix: ''
-  IGNCR: 
+  IGNCR:
     in-latest-posix: ''
   IGNPAR:
     in-latest-posix: ''
@@ -64,7 +64,7 @@ macros:
     in-latest-posix: ''
   OFILL:
     in-latest-posix: ''
-    
+
   NLDLY:
     in-latest-posix: ''
   NL0:
@@ -139,7 +139,7 @@ macros:
     in-latest-posix: ''
   B2400:
     in-latest-posix: ''
-  B4800:  
+  B4800:
     in-latest-posix: ''
   B9600:
     in-latest-posix: ''
@@ -231,13 +231,13 @@ functions:
     in-latest-posix: ''
   tcgetattr:
     in-latest-posix: ''
-  tcgetsid: 
+  tcgetsid:
     in-latest-posix: ''
   tcgetwinsize:
     in-latest-posix: ''
   tcsendbreak:
     in-latest-posix: ''
-  tcsetattr: 
+  tcsetattr:
     in-latest-posix: ''
   tcsetwinsize:
     in-latest-posix: ''
\ No newline at end of file
diff --git a/libc/utils/mathtools/worst_case.sollya b/libc/utils/mathtools/worst_case.sollya
index 3a8d11b3da44d5..7cb549c7602576 100644
--- a/libc/utils/mathtools/worst_case.sollya
+++ b/libc/utils/mathtools/worst_case.sollya
@@ -1,6 +1,6 @@
 // Implement WorstCase functions to compute the worst case for x mod C, with
 // the exponent of x ranges from emin to emax, and precision of x is p.
-// Adapted to Sollya from the Maple function in 
+// Adapted to Sollya from the Maple function in
 //   J-M. Muller, "Elementary Functions", 3rd ed, Section 11.3.2.
 //
 // Some examples:
@@ -8,7 +8,7 @@
 // 1) Worst case for trig range reduction fast passes:
 //
 // Single precision
-// > WorstCase(24, -6, 32, pi/32, 128); 
+// > WorstCase(24, -6, 32, pi/32, 128);
 // numbermin :  10741887
 // expmin    :  7
 // Worst case:  0x1.47d0fep30



More information about the libc-commits mailing list