[libcxx][test][NFC] Fix comment typos.
authorStephan T. Lavavej <stl@microsoft.com>
Tue, 22 Oct 2019 22:19:40 +0000 (15:19 -0700)
committerStephan T. Lavavej <stl@microsoft.com>
Tue, 22 Oct 2019 22:22:13 +0000 (15:22 -0700)
(Testing git commit access.)

23 files changed:
libcxx/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp
libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp
libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/difference.pass.cpp
libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/subtraction.pass.cpp
libcxx/test/std/numerics/c.math/abs.pass.cpp
libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp
libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp
libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp
libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp
libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp
libcxx/test/std/utilities/meta/meta.const.eval/is_constant_evaluated.pass.cpp
libcxx/test/std/utilities/meta/meta.rel/is_convertible.pass.cpp
libcxx/test/std/utilities/optional/optional.specalg/swap.pass.cpp
libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move_convert.pass.cpp
libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move.pass.cpp
libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.pass.cpp
libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp
libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer.pass.cpp
libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ok.pass.cpp
libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp
libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp

index 0466b8a..7f26a53 100644 (file)
@@ -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))
index dda88f0..cd3c133 100644 (file)
@@ -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"));
index 30e3a84..ed91056 100644 (file)
@@ -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},
index 3196f22..3993dd3 100644 (file)
@@ -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:
index b313dc0..ac599c4 100644 (file)
@@ -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
index e7db1e8..a260c10 100644 (file)
@@ -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>
index d39e902..f50f0a6 100644 (file)
@@ -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>
index 3ad98b0..f70cbe7 100644 (file)
@@ -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>
index 2313c23..b4b234b 100644 (file)
@@ -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>
index 4dc796e..0f9f98e 100644 (file)
@@ -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();
index 89ca47f..f299c5f 100644 (file)
@@ -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;
index 4fca6e0..7be023f 100644 (file)
@@ -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;
index c9ebdf6..84d2858 100644 (file)
@@ -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> &>;
index 7c07b2e..5ccc5d6 100644 (file)
@@ -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'.
index 3d0bb1c..4f44da6 100644 (file)
@@ -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> &>;
index 9ec7f7a..0d06706 100644 (file)
@@ -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, "");
index 48d41fc..4e35fc0 100644 (file)
@@ -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, "");
index 86fa92e..3b84efb 100644 (file)
@@ -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)
index 59bc5e7..174e9a7 100644 (file)
@@ -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;
index 7b51b6f..d5b6c79 100644 (file)
@@ -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;