You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Eric Fiselier
301518c94e
Fix PR37694 - std::vector doesn't correctly move construct allocators.
...
C++2a[container.requirements.general]p8 states that when move constructing
a container, the allocator is move constructed. Vector previously copy
constructed these allocators. This patch fixes that bug.
Additionally it cleans up some unnecessary allocator conversions
when copy constructing containers. Libc++ uses
__internal_allocator_traits::select_on_copy_construction to select
the correct allocator during copy construction, but it unnecessarily
converted the resulting allocator to the user specified allocator
type and back. After this patch list and forward_list no longer
do that.
Technically we're supposed to be using allocator_traits<allocator_type>::select_on_copy_construction,
but that should seemingly be addressed as a separate patch, if at all.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@334053 91177308-0d34-0410-b5e6-96231b3b80d8
8 years ago
..
assign_copy.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
assign_initializer_list.pass.cpp
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in vector.
9 years ago
assign_move.pass.cpp
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in vector.
9 years ago
capacity.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
construct_default.pass.cpp
[libcxx] [test] Untabify, NFC.
8 years ago
construct_iter_iter.pass.cpp
[libcxx] [test] D27021: Fix MSVC warning C4389 "signed/unsigned mismatch", part 8/12.
9 years ago
construct_iter_iter_alloc.pass.cpp
[libcxx] [test] D27021: Fix MSVC warning C4389 "signed/unsigned mismatch", part 8/12.
9 years ago
construct_size.pass.cpp
fix warnings only produced by apple-clang
9 years ago
construct_size_value.pass.cpp
Fix vector<bool> tests that were using ints. Patch from STL@microsoft.com
10 years ago
construct_size_value_alloc.pass.cpp
Fix vector<bool> tests that were using ints. Patch from STL@microsoft.com
10 years ago
copy.pass.cpp
[libcxx] [test] D27269: Fix MSVC x64 warning C4267 "conversion from 'size_t' to 'int' [or 'unsigned int'], possible loss of data", part 3/4.
9 years ago
copy_alloc.pass.cpp
[libcxx] [test] D27269: Fix MSVC x64 warning C4267 "conversion from 'size_t' to 'int' [or 'unsigned int'], possible loss of data", part 3/4.
9 years ago
default_noexcept.pass.cpp
[libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3.
9 years ago
dtor_noexcept.pass.cpp
[libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3.
9 years ago
emplace.pass.cpp
[libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants.
9 years ago
emplace_back.pass.cpp
[libcxx] [test] Fix MSVC "warning C6326: Potential comparison of a constant with another constant".
9 years ago
empty.fail.cpp
First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only
8 years ago
empty.pass.cpp
Added tests for xxx.size() and xxx.empty() for all the sequence containers
8 years ago
enabled_hash.pass.cpp
Implement P0513R0 - "Poisoning the Hash"
9 years ago
erase_iter.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
erase_iter_iter.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
find.pass.cpp
Update all bug URL's to point to https://bugs.llvm.org/ ...
9 years ago
initializer_list.pass.cpp
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in vector.
9 years ago
initializer_list_alloc.pass.cpp
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in vector.
9 years ago
insert_iter_initializer_list.pass.cpp
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in vector.
9 years ago
insert_iter_iter_iter.pass.cpp
Enable the -Wsign-compare warning to better support MSVC
9 years ago
insert_iter_size_value.pass.cpp
[libcxx] [test] D27016: Fix MSVC warning C4018 "signed/unsigned mismatch", part 4/12.
9 years ago
insert_iter_value.pass.cpp
[libcxx] [test] D27016: Fix MSVC warning C4018 "signed/unsigned mismatch", part 4/12.
9 years ago
iterators.pass.cpp
[libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER.
9 years ago
move.pass.cpp
Fix PR37694 - std::vector doesn't correctly move construct allocators.
8 years ago
move_alloc.pass.cpp
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in vector.
9 years ago
move_assign_noexcept.pass.cpp
[libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3.
9 years ago
move_noexcept.pass.cpp
[libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3.
9 years ago
op_equal_initializer_list.pass.cpp
Replace _LIBCPP_HAS_NO_<C++03 feature> with _LIBCPP_CXX03_LANG in vector.
9 years ago
push_back.pass.cpp
[libcxx] [test] D27013: Fix MSVC warning C4018 "signed/unsigned mismatch", part 1/12.
9 years ago
reference.swap.pass.cpp
[libcxx] [test] Untabify, NFC.
8 years ago
reserve.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
resize_size.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
resize_size_value.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
shrink_to_fit.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
size.pass.cpp
Fix copy/paste bug in test where we were putting a '3' into a vector<bool>. NFC.
8 years ago
swap.pass.cpp
Fix undefined behavior in container swap tests.
9 years ago
swap_noexcept.pass.cpp
[libcxx] [test] Change comments to say C++ instead of c++. NFC.
8 years ago
types.pass.cpp
Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER.
10 years ago
vector_bool.pass.cpp
[libcxx] [test] Strip trailing whitespace. NFC.
9 years ago