From c23e2c015fb78411af0280a5af6437614b7192b3 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Tue, 2 Aug 2022 12:42:04 +0200 Subject: [PATCH] [libcxx] Fixed a number of typos 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). Reviewed By: #libc, philnik Spies: philnik, libcxx-commits, mgorny, arichardson Differential Revision: https://reviews.llvm.org/D130905 --- libcxx/CMakeLists.txt | 2 +- libcxx/include/__config | 2 +- libcxx/src/support/runtime/stdexcept_vcruntime.ipp | 2 +- .../utilities/optional/optional.object/triviality.abi.pass.cpp | 2 +- .../format.context/format.context/ctor.pass.cpp | 2 +- libcxx/test/support/format_string.h | 2 +- libcxx/utils/libcxx/test/dsl.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt index 74eff2002fc9..f9f14fd5cf1d 100644 --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -524,7 +524,7 @@ function(cxx_add_basic_build_flags target) # When building the dylib, don't warn for unavailable aligned allocation # functions based on the deployment target -- they are always available - # because they are provided by the dylib itself with the excepton of z/OS. + # because they are provided by the dylib itself with the exception of z/OS. if (ZOS) target_add_compile_flags_if_supported(${target} PRIVATE -fno-aligned-allocation) else() diff --git a/libcxx/include/__config b/libcxx/include/__config index 57b89a29d208..ce113aeefd3c 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -771,7 +771,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD # if !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS) # if __has_attribute(deprecated) # define _LIBCPP_DEPRECATED __attribute__((deprecated)) -# define _LIBCPP_DEPRECATED_(m) __attribute__((deprected(m))) +# define _LIBCPP_DEPRECATED_(m) __attribute__((deprecated(m))) # elif _LIBCPP_STD_VER > 11 # define _LIBCPP_DEPRECATED [[deprecated]] # define _LIBCPP_DEPRECATED_(m) [[deprecated(m)]] diff --git a/libcxx/src/support/runtime/stdexcept_vcruntime.ipp b/libcxx/src/support/runtime/stdexcept_vcruntime.ipp index 8a6d939cb09f..db9097d097ca 100644 --- a/libcxx/src/support/runtime/stdexcept_vcruntime.ipp +++ b/libcxx/src/support/runtime/stdexcept_vcruntime.ipp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #ifndef _LIBCPP_ABI_VCRUNTIME -#error This file may only be used when defering to vcruntime +#error This file may only be used when deferring to vcruntime #endif namespace std { diff --git a/libcxx/test/libcxx/utilities/optional/optional.object/triviality.abi.pass.cpp b/libcxx/test/libcxx/utilities/optional/optional.object/triviality.abi.pass.cpp index 80896084335f..7d868781ccaf 100644 --- a/libcxx/test/libcxx/utilities/optional/optional.object/triviality.abi.pass.cpp +++ b/libcxx/test/libcxx/utilities/optional/optional.object/triviality.abi.pass.cpp @@ -13,7 +13,7 @@ // This test asserts the triviality of special member functions of optional // whenever T has these special member functions trivial. The goal of this test // is to make sure that we do not change the triviality of those, since that -// constitues an ABI break (small enough optionals would be passed by registers). +// constitutes an ABI break (small enough optionals would be passed by registers). // // constexpr optional(const optional& rhs); // constexpr optional(optional&& rhs) noexcept(see below); diff --git a/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/ctor.pass.cpp b/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/ctor.pass.cpp index bb4fcdc1d90d..0b86c342f621 100644 --- a/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/ctor.pass.cpp +++ b/libcxx/test/std/utilities/format/format.formatter/format.context/format.context/ctor.pass.cpp @@ -18,7 +18,7 @@ // basic_format_context(Out out, // basic_format_args args, // std::optional&& loc = std::nullopt); -// If compliled with -D_LIBCPP_HAS_NO_LOCALIZATION +// If compiled with -D_LIBCPP_HAS_NO_LOCALIZATION // basic_format_context(Out out, // basic_format_args args); diff --git a/libcxx/test/support/format_string.h b/libcxx/test/support/format_string.h index e330164d78cb..230f2e475d59 100644 --- a/libcxx/test/support/format_string.h +++ b/libcxx/test/support/format_string.h @@ -9,7 +9,7 @@ namespace format_string_detail { inline std::string format_string_imp(const char* msg, ...) { - // we might need a second shot at this, so pre-emptivly make a copy + // we might need a second shot at this, so pre-emptively make a copy struct GuardVAList { va_list& xtarget; bool active; diff --git a/libcxx/utils/libcxx/test/dsl.py b/libcxx/utils/libcxx/test/dsl.py index e77ea8fa6004..99ccb5af9f5d 100644 --- a/libcxx/utils/libcxx/test/dsl.py +++ b/libcxx/utils/libcxx/test/dsl.py @@ -604,7 +604,7 @@ class Parameter(object): Parameters are used to customize the behavior of test suites in a user controllable way. There are two ways of setting the value of a Parameter. The first one is to pass `--param =` when running Lit (or - equivalenlty to set `litConfig.params[KEY] = VALUE` somewhere in the + equivalently to set `litConfig.params[KEY] = VALUE` somewhere in the Lit configuration files. This method will set the parameter globally for all test suites being run.