Found six (nmostly) identical files named 'test_allocator.h' in the libcxx test suite. Moved one to /support, made it a superset, and removed all but one of the others, and iupdated all the includes. Left the odd one (thread/futures/test_allocator.h) for later.

llvm-svn: 196174
This commit is contained in:
Marshall Clow 2013-12-03 00:18:10 +00:00
parent ba71833846
commit c3deeb5f89
324 changed files with 366 additions and 719 deletions

View File

@ -16,7 +16,7 @@
#include <map>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#if __has_feature(cxx_noexcept)

View File

@ -16,7 +16,7 @@
#include <map>
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -17,7 +17,7 @@
#include <map>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../test_compare.h"
#include "min_allocator.h"

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -16,7 +16,7 @@
#include <map>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#if __has_feature(cxx_noexcept)

View File

@ -16,7 +16,7 @@
#include <map>
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -17,7 +17,7 @@
#include <map>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../test_compare.h"
#include "min_allocator.h"

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -16,7 +16,7 @@
#include <set>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#if __has_feature(cxx_noexcept)

View File

@ -16,7 +16,7 @@
#include <set>
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -20,7 +20,7 @@
#include "test_iterators.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -15,7 +15,7 @@
#include <set>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../test_compare.h"
int main()

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -16,7 +16,7 @@
#include <set>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#if __has_feature(cxx_noexcept)

View File

@ -17,7 +17,7 @@
#include <set>
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -24,7 +24,7 @@
#include "test_iterators.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
int main()
{

View File

@ -18,7 +18,7 @@
#include "../../../MoveOnly.h"
#include "../../../test_compare.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -15,7 +15,7 @@
#include <set>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../test_compare.h"
int main()

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_comp

View File

@ -15,7 +15,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct test

View File

@ -15,7 +15,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct test

View File

@ -16,7 +16,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class C>
C

View File

@ -16,7 +16,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class C>
C

View File

@ -25,7 +25,7 @@ make(int n)
return c;
}
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct test

View File

@ -29,7 +29,7 @@ make(int n)
return c;
}
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct test

View File

@ -15,7 +15,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
struct test
: private std::queue<int, std::deque<int, test_allocator<int> > >

View File

@ -15,7 +15,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class C>
C

View File

@ -15,7 +15,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class C>
C

View File

@ -15,7 +15,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../MoveOnly.h"
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES

View File

@ -15,7 +15,7 @@
#include <queue>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../MoveOnly.h"
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES

View File

@ -15,7 +15,7 @@
#include <stack>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
struct test
: private std::stack<int, std::deque<int, test_allocator<int> > >

View File

@ -15,7 +15,7 @@
#include <stack>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class C>
C

View File

@ -15,7 +15,7 @@
#include <stack>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class C>
C

View File

@ -15,7 +15,7 @@
#include <stack>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../MoveOnly.h"
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES

View File

@ -15,7 +15,7 @@
#include <stack>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../MoveOnly.h"
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES

View File

@ -14,7 +14,7 @@
#include <deque>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../NotConstructible.h"
#include "min_allocator.h"

View File

@ -13,7 +13,7 @@
#include <deque>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
template <class C>

View File

@ -14,7 +14,7 @@
#include <deque>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
template <class C>

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_alloc

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#if __has_feature(cxx_noexcept)

View File

@ -14,7 +14,7 @@
#include <deque>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -16,7 +16,7 @@
#include <cassert>
#include "test_iterators.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
template <class InputIterator, class Allocator>

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
int main()

View File

@ -20,7 +20,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_alloc

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_alloc

View File

@ -13,7 +13,7 @@
#include <deque>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
template <class C>

View File

@ -14,7 +14,7 @@
#include <deque>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "min_allocator.h"
template <class C>

View File

@ -19,7 +19,7 @@
#include <cassert>
#include "../../../MoveOnly.h"
#include "../../../test_allocator.h"
#include "test_allocator.h"
template <class T>
struct some_alloc

View File

@ -33,7 +33,7 @@
#include <iterator>
#include <type_traits>
#include "../../test_allocator.h"
#include "test_allocator.h"
#include "../../Copyable.h"
#include "min_allocator.h"

View File

@ -31,7 +31,7 @@
#include <algorithm>
#include <complex>
#include <string>
#include "../../../test_allocator.h"
#include "test_allocator.h"
using std::experimental::dynarray;

View File

@ -18,7 +18,7 @@
#if _LIBCPP_STD_VER > 11
#include <experimental/dynarray>
#include "../../../test_allocator.h"
#include "test_allocator.h"
using std::experimental::dynarray;

View File

@ -14,7 +14,7 @@
#include <forward_list>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../NotConstructible.h"
int main()

View File

@ -14,7 +14,7 @@
#include <forward_list>
#include <cassert>
#include "../../../test_allocator.h"
#include "test_allocator.h"
#include "../../../NotConstructible.h"
#include "min_allocator.h"

Some files were not shown because too many files have changed in this diff Show More