[libcxx-commits] [libcxx] e9eb999 - [libc++] s/insertible/insertable/g. NFCI.

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 14 06:57:25 PST 2020


Author: Arthur O'Dwyer
Date: 2020-12-14T09:54:58-05:00
New Revision: e9eb99999f8f75e5f9244da8600dde1f7d85cac9

URL: https://github.com/llvm/llvm-project/commit/e9eb99999f8f75e5f9244da8600dde1f7d85cac9
DIFF: https://github.com/llvm/llvm-project/commit/e9eb99999f8f75e5f9244da8600dde1f7d85cac9.diff

LOG: [libc++] s/insertible/insertable/g. NFCI.

Added: 
    

Modified: 
    libcxx/include/memory
    libcxx/test/std/containers/sequences/vector/vector.modifiers/resize_not_move_insertable.fail.cpp
    libcxx/test/support/container_test_types.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/memory b/libcxx/include/memory
index f8c3ace20619..b5193396673f 100644
--- a/libcxx/include/memory
+++ b/libcxx/include/memory
@@ -1716,7 +1716,7 @@ template <class _Alloc, class _Ptr>
 _LIBCPP_INLINE_VISIBILITY
 void __construct_forward_with_exception_guarantees(_Alloc& __a, _Ptr __begin1, _Ptr __end1, _Ptr& __begin2) {
     static_assert(__is_cpp17_move_insertable<_Alloc>::value,
-        "The specified type does not meet the requirements of Cpp17MoveInsertible");
+        "The specified type does not meet the requirements of Cpp17MoveInsertable");
     typedef allocator_traits<_Alloc> _Traits;
     for (; __begin1 != __end1; ++__begin1, (void)++__begin2) {
         _Traits::construct(__a, _VSTD::__to_address(__begin2),

diff  --git a/libcxx/test/std/containers/sequences/vector/vector.modifiers/resize_not_move_insertable.fail.cpp b/libcxx/test/std/containers/sequences/vector/vector.modifiers/resize_not_move_insertable.fail.cpp
index fb10a3c9b5d5..984af29d31bf 100644
--- a/libcxx/test/std/containers/sequences/vector/vector.modifiers/resize_not_move_insertable.fail.cpp
+++ b/libcxx/test/std/containers/sequences/vector/vector.modifiers/resize_not_move_insertable.fail.cpp
@@ -14,7 +14,7 @@
 // <vector>
 
 // Test that vector produces a decent diagnostic for user types that explicitly
-// delete their move constructor. Such types don't meet the Cpp17CopyInsertible
+// delete their move constructor. Such types don't meet the Cpp17CopyInsertable
 // requirements.
 
 #include <vector>

diff  --git a/libcxx/test/support/container_test_types.h b/libcxx/test/support/container_test_types.h
index 2668aa889fe3..38fcd5107d3a 100644
--- a/libcxx/test/support/container_test_types.h
+++ b/libcxx/test/support/container_test_types.h
@@ -49,12 +49,12 @@
 //----------------------------------------------------------------------------
 /*
  * Usage: The following example checks that 'unordered_map::emplace(Args&&...)'
- *        with 'Args = [CopyInsertable<1> const&, CopyInsertible<2>&&]'
+ *        with 'Args = [CopyInsertable<1> const&, CopyInsertable<2>&&]'
  *        calls 'alloc.construct(value_type*, Args&&...)' with the same types.
  *
  * // Typedefs for container
- * using Key = CopyInsertible<1>;
- * using Value = CopyInsertible<2>;
+ * using Key = CopyInsertable<1>;
+ * using Value = CopyInsertable<2>;
  * using ValueTp = std::pair<const Key, Value>;
  * using Alloc = ContainerTestAllocator<ValueTp, ValueTp>;
  * using Map = std::unordered_map<Key, Value, std::hash<Key>, std::equal_to<Key>, Alloc>;


        


More information about the libcxx-commits mailing list