Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								8d113d430f 
								
							 
						 
						
							
							
								
								Add a bunch of missing includes in the test suite to make it more portable. Fixes bugs  #26120  and  #26121 . Thanks to Jonathan Wakely for the reports and the patches.  
							
							 
							
							... 
							
							
							
							llvm-svn: 257474 
							
						 
						
							2016-01-12 14:51:04 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								545b8861fc 
								
							 
						 
						
							
							
								
								[libcxx] LWG2485: get() should be overloaded for const tuple&&. Patch from K-Ballo.  
							
							 
							
							... 
							
							
							
							Review: http://reviews.llvm.org/D14839 
llvm-svn: 255941 
							
						 
						
							2015-12-18 00:36:55 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								94f89aeec5 
								
							 
						 
						
							
							
								
								Add static_assert to set/multiset/map/multimap/forward_list/deque that the allocator's value_type match the container's value_type. vector/unordered/list/string already do this. Add tests for all the containers to verify this.  
							
							 
							
							... 
							
							
							
							llvm-svn: 254119 
							
						 
						
							2015-11-26 01:24:04 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								e0312a3047 
								
							 
						 
						
							
							
								
								Remove undefined behavior from tests; specifically, ensure that the value type of the allocators match the value type of the containers  
							
							 
							
							... 
							
							
							
							llvm-svn: 254030 
							
						 
						
							2015-11-24 22:10:51 +00:00  
						
					 
				
					
						
							
							
								 
								Asiri Rathnayake
							
						 
						
							 
							
							
							
							
								
							
							
								f520c1445f 
								
							 
						 
						
							
							
								
								Make it possible to build a no-exceptions variant of libcxx.  
							
							 
							
							... 
							
							
							
							Fixes a small omission in libcxx that prevents libcxx being built when
-DLIBCXX_ENABLE_EXCEPTIONS=0 is specified.
This patch adds XFAILS to all those tests that are currently failing
on the new -fno-exceptions library variant. Follow-up patches will
update the tests (progressively) to cope with the new library variant.
Change-Id: I4b801bd8d8e4fe7193df9e55f39f1f393a8ba81a
llvm-svn: 252598 
							
						 
						
							2015-11-10 11:41:22 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								b4e2e7a292 
								
							 
						 
						
							
							
								
								Suppress array initialization warnings in std::experimental::apply tests  
							
							 
							
							... 
							
							
							
							llvm-svn: 248987 
							
						 
						
							2015-10-01 07:05:38 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								1c81340797 
								
							 
						 
						
							
							
								
								Recommit rL245802: Cleanup fancy pointer rebinding in list using __rebind_pointer.  
							
							 
							
							... 
							
							
							
							Currently we need an #ifdef branch every time we use pointer traits to rebind a pointer because
it is done differently in C++11 and C++03. This patch introduces the __rebind_pointer utility to
clean this up.
Also add a test that list and it's iterators can be instantiated with incomplete element types.
llvm-svn: 245806 
							
						 
						
							2015-08-23 02:56:05 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								1378a5aec3 
								
							 
						 
						
							
							
								
								implement more of N4258 - Cleaning up noexcept in the standard library. Specifically add new noexcept stuff to vector and string's move-assignment operations  
							
							 
							
							... 
							
							
							
							llvm-svn: 245330 
							
						 
						
							2015-08-18 18:57:00 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								abd52cad84 
								
							 
						 
						
							
							
								
								Fix a handful of tests that fail in C++03  
							
							 
							
							... 
							
							
							
							llvm-svn: 243392 
							
						 
						
							2015-07-28 07:31:50 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								3e572598d3 
								
							 
						 
						
							
							
								
								Fix warnings in forwardlist  
							
							 
							
							... 
							
							
							
							llvm-svn: 242633 
							
						 
						
							2015-07-19 00:38:37 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								c45b673d5d 
								
							 
						 
						
							
							
								
								Fix warnings in deque tests  
							
							 
							
							... 
							
							
							
							llvm-svn: 242632 
							
						 
						
							2015-07-19 00:31:54 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								80fe6bd142 
								
							 
						 
						
							
							
								
								Commit file missing from r242629  
							
							 
							
							... 
							
							
							
							llvm-svn: 242630 
							
						 
						
							2015-07-19 00:11:50 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								2decfad7c5 
								
							 
						 
						
							
							
								
								Fix warnings in array and assoc containers  
							
							 
							
							... 
							
							
							
							llvm-svn: 242629 
							
						 
						
							2015-07-18 23:56:04 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								980eda3fc2 
								
							 
						 
						
							
							
								
								Add missing instrumentation in vector::insert - Patch from Anna Zaks  
							
							 
							
							... 
							
							
							
							This patch was reviewed as D10859. http://reviews.llvm.org/D10859 
llvm-svn: 242617 
							
						 
						
							2015-07-18 18:22:12 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								71ff7c3f0f 
								
							 
						 
						
							
							
								
								Move bits from N4258. Mark vector's move-constructor unconditionally noexcept in C++1z  
							
							 
							
							... 
							
							
							
							llvm-svn: 242148 
							
						 
						
							2015-07-14 14:46:32 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								e3fbe1433b 
								
							 
						 
						
							
							
								
								Implement the first part of N4258: 'Cleaning up noexcept in the Library'. This patch deals with swapping containers, and implements a more strict noexcept specification (a conforming extension) than the standard mandates.  
							
							 
							
							... 
							
							
							
							llvm-svn: 242056 
							
						 
						
							2015-07-13 20:04:56 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								b41e76bb0b 
								
							 
						 
						
							
							
								
								Fix PR#23767. Add tests for iterator invalidation for deque::erase/pop_front/pop_back  
							
							 
							
							... 
							
							
							
							llvm-svn: 239196 
							
						 
						
							2015-06-05 22:34:19 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								979550f221 
								
							 
						 
						
							
							
								
								While applying N4258, I forgot about LWG#2455, which modified the modifications. Correct those - h/t: Howard  
							
							 
							
							... 
							
							
							
							llvm-svn: 239004 
							
						 
						
							2015-06-04 02:05:41 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								a8ae392718 
								
							 
						 
						
							
							
								
								More N4258 changes. This time vector's constructors  
							
							 
							
							... 
							
							
							
							llvm-svn: 238990 
							
						 
						
							2015-06-04 00:10:20 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								cd6f7f9d80 
								
							 
						 
						
							
							
								
								Fix broken test I just added  
							
							 
							
							... 
							
							
							
							llvm-svn: 238234 
							
						 
						
							2015-05-26 19:17:09 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								c5c29006dc 
								
							 
						 
						
							
							
								
								Add tests to ensure that string/vector/array have contiguous iterators - which they did. Mark N4284 as complete  
							
							 
							
							... 
							
							
							
							llvm-svn: 238233 
							
						 
						
							2015-05-26 18:57:27 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								fd30fb22c2 
								
							 
						 
						
							
							
								
								Fix test that was failing on C++03 b/c it was using initializer lists  
							
							 
							
							... 
							
							
							
							llvm-svn: 237527 
							
						 
						
							2015-05-16 17:10:49 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								cd26846fc5 
								
							 
						 
						
							
							
								
								Remove some debugging printout lines. No functionality change.  
							
							 
							
							... 
							
							
							
							llvm-svn: 236949 
							
						 
						
							2015-05-10 13:26:57 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								4c30259879 
								
							 
						 
						
							
							
								
								Make the new tests better; make sure that we're testing the case where no reallocation has to happen  
							
							 
							
							... 
							
							
							
							llvm-svn: 233641 
							
						 
						
							2015-03-30 23:26:16 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								21471e0906 
								
							 
						 
						
							
							
								
								While testing Erik's code coverage scripts, I found a hole in the test suite - vector::assign where a reallocation was not required had no tests. Add some  
							
							 
							
							... 
							
							
							
							llvm-svn: 233557 
							
						 
						
							2015-03-30 16:07:11 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								57f00f2f9c 
								
							 
						 
						
							
							
								
								[libcxx] Move tuple_size and tuple_element overloads for pair and array out of !defined(_LIBCPP_HAS_NO_VARIADICS) block.  
							
							 
							
							... 
							
							
							
							Summary:
There is no reason to guard `tuple_size`, `tuple_element` and `get<I>(...)` for pair and array inside of `<__tuple>` so that they are only available when we have variadic templates.
This requires there be redundant declarations and definitions. It also makes it easy to get things wrong.
For example the following code should compile (and does in c++11).
```
#define _LIBCPP_HAS_NO_VARIADICS
#include <array>
int main()
{
  static_assert((std::tuple_size<std::array<int, 10> volatile>::value == 10), "");
}
```
This patch lifts the non-variadic parts of `tuple_size`, `tuple_types`, and `get<I>(...)` to the top of `<__tuple>` where they don't require variadic templates. This patch also removes `<__tuple_03>` because there is no longer a need for it.
Reviewers: danalbert, K-ballo, mclow.lists
Reviewed By: mclow.lists
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D7774 
llvm-svn: 232492 
							
						 
						
							2015-03-17 15:08:03 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								4b7533a1dd 
								
							 
						 
						
							
							
								
								Use generic feature name for sanitizers that replace new and delete  
							
							 
							
							... 
							
							
							
							llvm-svn: 231841 
							
						 
						
							2015-03-10 20:46:04 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								21d7ffa233 
								
							 
						 
						
							
							
								
								[libcxx] Fix __RAII_IncreaseAnnotator for increases >= 1  
							
							 
							
							... 
							
							
							
							Summary: Fix suggested by @mclow.lists on D8109. Store the size of the un-poisoned vector upon construction instead of calculating it later.
Reviewers: titus, mclow.lists, kcc, EricWF
Reviewed By: EricWF
Subscribers: mclow.lists, cfe-commits
Differential Revision: http://reviews.llvm.org/D8172 
llvm-svn: 231729 
							
						 
						
							2015-03-10 00:25:20 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								764d030840 
								
							 
						 
						
							
							
								
								Move test to use correct suffix  
							
							 
							
							... 
							
							
							
							llvm-svn: 231704 
							
						 
						
							2015-03-09 21:30:48 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								f4903afd93 
								
							 
						 
						
							
							
								
								Fix an exception-safety bug in <deque>. Reference: PR#22650. Not closing the bug because there's more work to do here  
							
							 
							
							... 
							
							
							
							llvm-svn: 231672 
							
						 
						
							2015-03-09 17:08:51 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								b844b1a0ff 
								
							 
						 
						
							
							
								
								Move the <dynarray> tests out of the std/ hierarchy, since it's not really part of the standard any more.  
							
							 
							
							... 
							
							
							
							llvm-svn: 231311 
							
						 
						
							2015-03-04 23:09:15 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								861d0ea2aa 
								
							 
						 
						
							
							
								
								Fix more issues exposed by -pedantic-errors in c++03 mode  
							
							 
							
							... 
							
							
							
							llvm-svn: 228711 
							
						 
						
							2015-02-10 17:20:18 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								949389c395 
								
							 
						 
						
							
							
								
								We had two identical files named 'MoveOnly.h' in the test suite. Move one to support/, remove the other, and update all the tests that included them. No functionality change.  
							
							 
							
							... 
							
							
							
							llvm-svn: 227370 
							
						 
						
							2015-01-28 21:22:53 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								00f792e19e 
								
							 
						 
						
							
							
								
								Added test for incomplete type support in vector/list/forward_list. References PR#17980  
							
							 
							
							... 
							
							
							
							llvm-svn: 227131 
							
						 
						
							2015-01-26 20:06:52 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								f15d7a5882 
								
							 
						 
						
							
							
								
								Fix PR#22284. Add a new overload to deque::insert to handle forward iterators. Update tests to exercise this case.  
							
							 
							
							... 
							
							
							
							llvm-svn: 226847 
							
						 
						
							2015-01-22 18:33:29 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								e21582e742 
								
							 
						 
						
							
							
								
								Walter Brown sent a list of tests which needed 'additional includes' to match what was in the standard. Added these includes to the tests. No changes to the library or test results.  
							
							 
							
							... 
							
							
							
							llvm-svn: 225541 
							
						 
						
							2015-01-09 20:25:52 +00:00  
						
					 
				
					
						
							
							
								 
								Marshall Clow
							
						 
						
							 
							
							
							
							
								
							
							
								d95510ebba 
								
							 
						 
						
							
							
								
								libc++ implements its' hash objects as deriving from std::unary_function, and the tests test for that. STL @ MS pointed out that the standard doesn't requie these objects to derive from unary_function, and so the tests should not require that either. Change the tests to check for the embedded typedefs - which ARE required. No change to the library.  
							
							 
							
							... 
							
							
							
							llvm-svn: 225403 
							
						 
						
							2015-01-07 21:53:23 +00:00  
						
					 
				
					
						
							
							
								 
								Eric Fiselier
							
						 
						
							 
							
							
							
							
								
							
							
								5a83710e37 
								
							 
						 
						
							
							
								
								Move test into test/std subdirectory.  
							
							 
							
							... 
							
							
							
							llvm-svn: 224658 
							
						 
						
							2014-12-20 01:40:03 +00:00