diff options
author | Stephan T. Lavavej <stl@microsoft.com> | 2019-10-22 15:19:40 -0700 |
---|---|---|
committer | Stephan T. Lavavej <stl@microsoft.com> | 2019-10-22 15:22:13 -0700 |
commit | 437e0e5191ca255db27e86d232020844c1fd08c8 (patch) | |
tree | f7d291d2124d45a27f4825c61f4b0008df693ea7 | |
parent | 19e95ab4210bedf36f0f50d54c39e8f7f4d879f2 (diff) | |
download | bcm5719-llvm-437e0e5191ca255db27e86d232020844c1fd08c8.tar.gz bcm5719-llvm-437e0e5191ca255db27e86d232020844c1fd08c8.zip |
[libcxx][test][NFC] Fix comment typos.
(Testing git commit access.)
23 files changed, 29 insertions, 29 deletions
diff --git a/libcxx/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp b/libcxx/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp index 110b8a7c20a..cdc04b18d24 100644 --- a/libcxx/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp +++ b/libcxx/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp @@ -8,7 +8,7 @@ // <array> -// Construct with initizializer list +// Construct with initializer list #include <array> #include <cassert> diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp index 0466b8a708b..7f26a53482d 100644 --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp @@ -78,7 +78,7 @@ int main(int, char**) { const fs::path proximate_output = p.lexically_proximate(TC.base); // [path.gen] lexically_proximate // Returns: If the value of lexically_relative(base) is not an empty path, - // return it.Otherwise return *this. + // return it. Otherwise return *this. const fs::path proximate_expected = output.native().empty() ? p : output; if (!PathEq(proximate_expected, proximate_output)) diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp index dda88f0fa0a..cd3c133e090 100644 --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp @@ -66,7 +66,7 @@ TEST_CASE(test_signature_5) { TEST_CASE(test_signature_6) { // FIXME? If the trailing separator occurs in a part of the path that exists, - // it is ommitted. Otherwise it is added to the end of the result. + // it is omitted. Otherwise it is added to the end of the result. fs::path p(StaticEnv::SymlinkToDir / "dir2/./"); const fs::path output = fs::weakly_canonical(p); TEST_CHECK(output == std::string(StaticEnv::Dir / "dir2")); diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp index 30e3a84ec2a..ed9105652c9 100644 --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp @@ -45,7 +45,7 @@ int main(int, char**) { {StaticEnv::SymlinkToDir, StaticEnv::Dir}, {StaticEnv::SymlinkToDir / "dir2/.", StaticEnv::Dir / "dir2"}, // FIXME? If the trailing separator occurs in a part of the path that exists, - // it is ommitted. Otherwise it is added to the end of the result. + // it is omitted. Otherwise it is added to the end of the result. {StaticEnv::SymlinkToDir / "dir2/./", StaticEnv::Dir / "dir2"}, {StaticEnv::SymlinkToDir / "dir2/DNE/./", StaticEnv::Dir / "dir2/DNE/"}, {StaticEnv::SymlinkToDir / "dir2", StaticEnv::Dir2}, diff --git a/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/difference.pass.cpp b/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/difference.pass.cpp index 88890562b35..07311347579 100644 --- a/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/difference.pass.cpp +++ b/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/difference.pass.cpp @@ -10,7 +10,7 @@ // template <class StateT> class fpos -// Subraction with fpos +// Subtraction with fpos #include <ios> #include <cassert> diff --git a/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/subtraction.pass.cpp b/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/subtraction.pass.cpp index 83d03861b39..d55b2e67036 100644 --- a/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/subtraction.pass.cpp +++ b/libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/subtraction.pass.cpp @@ -10,7 +10,7 @@ // template <class StateT> class fpos -// Subraction with offset +// Subtraction with offset #include <ios> #include <cassert> diff --git a/libcxx/test/std/numerics/c.math/abs.pass.cpp b/libcxx/test/std/numerics/c.math/abs.pass.cpp index 3196f225f30..3993dd34318 100644 --- a/libcxx/test/std/numerics/c.math/abs.pass.cpp +++ b/libcxx/test/std/numerics/c.math/abs.pass.cpp @@ -35,9 +35,9 @@ void test_abs() void test_big() { - long long int big_value = std::numeric_limits<long long int>::max(); // a value to big for ints to store + long long int big_value = std::numeric_limits<long long int>::max(); // a value too big for ints to store long long int negative_big_value = -big_value; - assert(std::abs(negative_big_value) == big_value); // make sure it doesnt get casted to a smaller type + assert(std::abs(negative_big_value) == big_value); // make sure it doesn't get casted to a smaller type } // The following is helpful to keep in mind: diff --git a/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp b/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp index b313dc0df55..ac599c43a3c 100644 --- a/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp @@ -8,7 +8,7 @@ // <string> -// int compare(size_type pos1, size_type n1, basic_string_vew sv) const; +// int compare(size_type pos1, size_type n1, basic_string_view sv) const; // When back-deploying to macosx10.7, the RTTI for exception classes // incorrectly provided by libc++.dylib is mixed with the one in diff --git a/libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp b/libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp index e7db1e8f00f..a260c10eb6c 100644 --- a/libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp @@ -9,9 +9,9 @@ // <string> // template<class charT, class traits, class Allocator> -// constexpr bool operator>=(const charT* lhs, basic_string_wiew<charT,traits> rhs); +// constexpr bool operator>=(const charT* lhs, basic_string_view<charT,traits> rhs); // template<class charT, class traits, class Allocator> -// constexpr bool operator>=(basic_string_wiew<charT,traits> lhs, const charT* rhs); +// constexpr bool operator>=(basic_string_view<charT,traits> lhs, const charT* rhs); #include <string_view> #include <cassert> diff --git a/libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp b/libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp index d39e902d796..f50f0a6c469 100644 --- a/libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp @@ -9,9 +9,9 @@ // <string> // constexpr template<class charT, class traits, class Allocator> -// bool operator>(const charT* lhs, basic_string_wiew<charT,traits> rhs); +// bool operator>(const charT* lhs, basic_string_view<charT,traits> rhs); // constexpr template<class charT, class traits, class Allocator> -// bool operator>(basic_string_wiew<charT,traits> lhs, const charT* rhs); +// bool operator>(basic_string_view<charT,traits> lhs, const charT* rhs); #include <string_view> #include <cassert> diff --git a/libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp b/libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp index 3ad98b017f7..f70cbe7b88e 100644 --- a/libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp @@ -9,9 +9,9 @@ // <string> // template<class charT, class traits, class Allocator> -// constexpr bool operator<=(const charT* lhs, basic_string_wiew<charT,traits> rhs); +// constexpr bool operator<=(const charT* lhs, basic_string_view<charT,traits> rhs); // template<class charT, class traits, class Allocator> -// constexpr bool operator<=(basic_string_wiew<charT,traits> lhs, const charT* rhs); +// constexpr bool operator<=(basic_string_view<charT,traits> lhs, const charT* rhs); #include <string_view> #include <cassert> diff --git a/libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp b/libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp index 2313c23e80f..b4b234ba2b5 100644 --- a/libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp @@ -9,9 +9,9 @@ // <string> // template<class charT, class traits, class Allocator> -// constexpr bool operator<(const charT* lhs, basic_string_wiew<charT,traits> rhs); +// constexpr bool operator<(const charT* lhs, basic_string_view<charT,traits> rhs); // template<class charT, class traits, class Allocator> -// constexpr bool operator<(basic_string_wiew<charT,traits> lhs, const charT* rhs); +// constexpr bool operator<(basic_string_view<charT,traits> lhs, const charT* rhs); #include <string_view> #include <cassert> diff --git a/libcxx/test/std/utilities/meta/meta.const.eval/is_constant_evaluated.pass.cpp b/libcxx/test/std/utilities/meta/meta.const.eval/is_constant_evaluated.pass.cpp index 4dc796e950f..0f9f98e9176 100644 --- a/libcxx/test/std/utilities/meta/meta.const.eval/is_constant_evaluated.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.const.eval/is_constant_evaluated.pass.cpp @@ -36,7 +36,7 @@ int main(int, char**) assert(p); } // Test the return value of the builtin for basic sanity only. It's the - // compilers job to test tho builtin for correctness. + // compiler's job to test the builtin for correctness. { static_assert(std::is_constant_evaluated(), ""); bool p = std::is_constant_evaluated(); diff --git a/libcxx/test/std/utilities/meta/meta.rel/is_convertible.pass.cpp b/libcxx/test/std/utilities/meta/meta.rel/is_convertible.pass.cpp index 89ca47fb96b..f299c5fb1ca 100644 --- a/libcxx/test/std/utilities/meta/meta.rel/is_convertible.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.rel/is_convertible.pass.cpp @@ -250,7 +250,7 @@ int main(int, char**) // Ensure that CannotInstantiate is not instantiated by is_convertible when it is not needed. - // For example CannotInstantiate is instatiated as a part of ADL lookup for arguments of type CannotInstantiate*. + // For example CannotInstantiate is instantiated as a part of ADL lookup for arguments of type CannotInstantiate*. static_assert((std::is_convertible<CannotInstantiate<int>*, CannotInstantiate<int>*>::value), ""); return 0; diff --git a/libcxx/test/std/utilities/optional/optional.specalg/swap.pass.cpp b/libcxx/test/std/utilities/optional/optional.specalg/swap.pass.cpp index 4fca6e0479c..7be023f463e 100644 --- a/libcxx/test/std/utilities/optional/optional.specalg/swap.pass.cpp +++ b/libcxx/test/std/utilities/optional/optional.specalg/swap.pass.cpp @@ -91,7 +91,7 @@ void test_swap_sfinae() { static_assert(!std::is_swappable_v<optional<T>>, ""); } { - // Even thought CopyOnly has deleted move operations, those operations + // Even though CopyOnly has deleted move operations, those operations // cause optional<CopyOnly> to have implicitly deleted move operations // that decay into copies. using T = TestTypes::CopyOnly; diff --git a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move_convert.pass.cpp b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move_convert.pass.cpp index c9ebdf63344..84d28589b08 100644 --- a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move_convert.pass.cpp +++ b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move_convert.pass.cpp @@ -240,7 +240,7 @@ void test_sfinae() { static_assert(std::is_nothrow_assignable<U1C, U1&&>::value, ""); } { // Test that non-reference destination deleters can be assigned - // from any source deleter type with a sutible conversion. Including + // from any source deleter type with a suitable conversion. Including // reference types. using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> >; using U2 = std::unique_ptr<VT, GenericConvertingDeleter<0> &>; diff --git a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move.pass.cpp b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move.pass.cpp index 7c07b2ec984..5ccc5d60aee 100644 --- a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move.pass.cpp +++ b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move.pass.cpp @@ -26,8 +26,8 @@ // 1 The moved from pointer is empty and the new pointer stores the old value. // 2 The only requirement on the deleter is that it is MoveConstructible // or a reference. -// 3 The constructor works for explicitly moved values (ie std::move(x)) -// 4 The constructor works for true temporaries (ie a return value) +// 3 The constructor works for explicitly moved values (i.e. std::move(x)) +// 4 The constructor works for true temporaries (e.g. a return value) // // Plan // 1 Explicitly construct unique_ptr<T, D> for various deleter types 'D'. diff --git a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.pass.cpp b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.pass.cpp index 3d0bb1cd1f6..4f44da6d3cf 100644 --- a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.pass.cpp +++ b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.pass.cpp @@ -128,7 +128,7 @@ void test_sfinae() { static_assert(std::is_nothrow_constructible<U1C, U1&&>::value, ""); } { // Test that non-reference destination deleters can be constructed - // from any source deleter type with a sutible conversion. Including + // from any source deleter type with a suitable conversion. Including // reference types. using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> >; using U2 = std::unique_ptr<VT, GenericConvertingDeleter<0> &>; diff --git a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp index 9ec7f7a4e1d..0d0670658e3 100644 --- a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp +++ b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp @@ -58,7 +58,7 @@ void test_basic() { template <class VT> void test_sfinae() { #if TEST_STD_VER >= 11 - { // the constructor does not participate in overload resultion when + { // the constructor does not participate in overload resolution when // the deleter is a pointer type using U = std::unique_ptr<VT, void (*)(void*)>; static_assert(!std::is_constructible<U, decltype(nullptr)>::value, ""); diff --git a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer.pass.cpp b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer.pass.cpp index 48d41fc5c0f..4e35fc05005 100644 --- a/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer.pass.cpp +++ b/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer.pass.cpp @@ -107,7 +107,7 @@ struct GenericDeleter { template <class T> void test_sfinae() { #if TEST_STD_VER >= 11 - { // the constructor does not participate in overload resultion when + { // the constructor does not participate in overload resolution when // the deleter is a pointer type using U = std::unique_ptr<T, void (*)(void*)>; static_assert(!std::is_constructible<U, T*>::value, ""); diff --git a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ok.pass.cpp b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ok.pass.cpp index 86fa92e21b1..3b84efb51df 100644 --- a/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ok.pass.cpp +++ b/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ok.pass.cpp @@ -28,7 +28,7 @@ int main(int, char**) static_assert( weekday{0}.ok(), ""); static_assert( weekday{1}.ok(), ""); - static_assert( weekday{7}.ok(), ""); // 7 is transmorgified into 0 in the ctor + static_assert( weekday{7}.ok(), ""); // 7 is transmogrified into 0 in the ctor static_assert(!weekday{8}.ok(), ""); for (unsigned i = 0; i <= 7; ++i) diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp index 59bc5e75811..174e9a7e25b 100644 --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp @@ -77,7 +77,7 @@ int main(int, char**) } { // Test that tuple evaluates correctly applies an lvalue reference - // before evaluating is_assignable (ie 'is_assignable<int&, int&>') + // before evaluating is_assignable (i.e. 'is_assignable<int&, int&>') // instead of evaluating 'is_assignable<int&&, int&>' which is false. int x = 42; int y = 43; diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp index 7b51b6f3cf0..d5b6c793b0c 100644 --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp @@ -98,7 +98,7 @@ int main(int, char**) } { // Test that tuple evaluates correctly applies an lvalue reference - // before evaluating is_assignable (ie 'is_assignable<int&, int&&>') + // before evaluating is_assignable (i.e. 'is_assignable<int&, int&&>') // instead of evaluating 'is_assignable<int&&, int&&>' which is false. int x = 42; int y = 43; |