Found two identical files named 'DefaultOnly.h' in the libcxx test suite. Moved one to /support, removed the other, and iupdated all the includes. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@196118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2013-12-02 17:00:56 +00:00
parent 6daf534441
commit e27dbcf2dc
25 changed files with 23 additions and 49 deletions

View File

@ -19,7 +19,7 @@
#include <tuple>
#include "../../../Emplaceable.h"
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../../Emplaceable.h"
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../../Emplaceable.h"
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../../Emplaceable.h"
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../Emplaceable.h"
#include "../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../Emplaceable.h"
#include "../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../Emplaceable.h"
#include "../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "../../Emplaceable.h"
#include "../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -15,7 +15,7 @@
#include <cassert>
#include "../../../stack_allocator.h"
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
template <class T, class Allocator>

View File

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

View File

@ -15,7 +15,7 @@
#include <forward_list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
template <class T, class Allocator>

View File

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

View File

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

View File

@ -13,7 +13,7 @@
#include <list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -13,7 +13,7 @@
#include <list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -13,7 +13,7 @@
#include <list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "../../../test_allocator.h"
#include "min_allocator.h"

View File

@ -13,7 +13,7 @@
#include <list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "../../../test_allocator.h"
#include "min_allocator.h"

View File

@ -13,7 +13,7 @@
#include <list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "min_allocator.h"
int main()

View File

@ -13,7 +13,7 @@
#include <list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "../../../stack_allocator.h"
#include "min_allocator.h"

View File

@ -13,7 +13,7 @@
#include <list>
#include <cassert>
#include "../../../DefaultOnly.h"
#include "DefaultOnly.h"
#include "../../../stack_allocator.h"
#include "min_allocator.h"

View File

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

View File

@ -1,26 +0,0 @@
#ifndef DEFAULTONLY_H
#define DEFAULTONLY_H
#include <cassert>
class DefaultOnly
{
int data_;
DefaultOnly(const DefaultOnly&);
DefaultOnly& operator=(const DefaultOnly&);
public:
static int count;
DefaultOnly() : data_(-1) {++count;}
~DefaultOnly() {data_ = 0; --count;}
friend bool operator==(const DefaultOnly& x, const DefaultOnly& y)
{return x.data_ == y.data_;}
friend bool operator< (const DefaultOnly& x, const DefaultOnly& y)
{return x.data_ < y.data_;}
};
int DefaultOnly::count = 0;
#endif // DEFAULTONLY_H

View File

@ -17,7 +17,7 @@
#include <tuple>
#include <cassert>
#include "../DefaultOnly.h"
#include "DefaultOnly.h"
#include "../allocators.h"
#include "../alloc_first.h"
#include "../alloc_last.h"

View File

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