[libc-commits] [PATCH] D130846: [libc] Fixed a number of typos

Gabriel Ravier via Phabricator via libc-commits libc-commits at lists.llvm.org
Sun Jul 31 08:06:27 PDT 2022


GabrielRavier created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
GabrielRavier requested review of this revision.

I went over the output of the following mess of a command:

`(ulimit -m 2000000; ulimit -v 2000000; git ls-files -z | parallel --xargs -0 cat | aspell list --mode=none --ignore-case | grep -E '^[A-Za-z][a-z]*$' | sort | uniq -c | sort -n | grep -vE '.{25}' | aspell pipe -W3 | grep : | cut -d' ' -f2 | less)`

and proceeded to spend a few days looking at it to find probable typos
and fixed a few hundred of them in all of the llvm project (note, the
ones I found are not anywhere near all of them, but it seems like a
good start).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130846

Files:
  libc/benchmarks/automemcpy/unittests/ResultAnalyzerTest.cpp
  libc/cmake/modules/LLVMLibCObjectRules.cmake
  libc/config/linux/app.h
  libc/test/src/__support/uint128_test.cpp
  libc/test/src/stdio/fileop_test.cpp
  libc/test/src/stdio/unlocked_fileop_test.cpp


Index: libc/test/src/stdio/unlocked_fileop_test.cpp
===================================================================
--- libc/test/src/stdio/unlocked_fileop_test.cpp
+++ libc/test/src/stdio/unlocked_fileop_test.cpp
@@ -1,4 +1,4 @@
-//===-- Unittests for f operations like fopen, flcose etc --------------===//
+//===-- Unittests for f operations like fopen, fclose etc --------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
Index: libc/test/src/stdio/fileop_test.cpp
===================================================================
--- libc/test/src/stdio/fileop_test.cpp
+++ libc/test/src/stdio/fileop_test.cpp
@@ -1,4 +1,4 @@
-//===-- Unittests for file operations like fopen, flcose etc --------------===//
+//===-- Unittests for file operations like fopen, fclose etc --------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
Index: libc/test/src/__support/uint128_test.cpp
===================================================================
--- libc/test/src/__support/uint128_test.cpp
+++ libc/test/src/__support/uint128_test.cpp
@@ -44,7 +44,7 @@
   EXPECT_EQ((val1 * val2), result1);
   EXPECT_EQ((val1 * val2), (val2 * val1)); // multiplication is reciprocal
 
-  // Check that the multiplication works accross the whole number
+  // Check that the multiplication works across the whole number
   LL_UInt128 val3({0xf, 0});
   LL_UInt128 val4({0x1111111111111111, 0x1111111111111111});
   LL_UInt128 result2({0xffffffffffffffff, 0xffffffffffffffff});
Index: libc/config/linux/app.h
===================================================================
--- libc/config/linux/app.h
+++ libc/config/linux/app.h
@@ -87,7 +87,7 @@
   uintptr_t addr = 0;
 
   // The value the thread pointer register should be initialized to.
-  // Note that, dependending the target architecture ABI, it can be the
+  // Note that, depending on the target architecture ABI, it can be the
   // same as |addr| or something else.
   uintptr_t tp = 0;
 
Index: libc/cmake/modules/LLVMLibCObjectRules.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCObjectRules.cmake
+++ libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -383,7 +383,7 @@
     # compiler and the compiled clang-tidy.
     if(COMPILER_RESOURCE_DIR)
       # We run restrict-system-libc-headers with --system-headers to prevent
-      # transitive inclusion through compler provided headers.
+      # transitive inclusion through compiler provided headers.
       set(restrict_system_headers_check_invocation
         COMMAND ${LLVM_LIBC_CLANG_TIDY} --system-headers
         --checks="-*,llvmlibc-restrict-system-libc-headers"
Index: libc/benchmarks/automemcpy/unittests/ResultAnalyzerTest.cpp
===================================================================
--- libc/benchmarks/automemcpy/unittests/ResultAnalyzerTest.cpp
+++ libc/benchmarks/automemcpy/unittests/ResultAnalyzerTest.cpp
@@ -25,7 +25,7 @@
   static constexpr SampleId Id = {Foo1, DistA};
   static constexpr Sample kSamples[] = {
       Sample{Id, SampleType::ITERATION, 4},
-      Sample{Id, SampleType::AGGREGATE, -1}, // Aggegates gets discarded
+      Sample{Id, SampleType::AGGREGATE, -1}, // Aggregates gets discarded
   };
 
   const std::vector<FunctionData> Data = getThroughputs(kSamples);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130846.448864.patch
Type: text/x-patch
Size: 3500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220731/ee8f641b/attachment.bin>


More information about the libc-commits mailing list