[libcxx] r346914 - Get tests compiling with -Wunused-local-typedef
Eric Fiselier
eric at efcs.ca
Wed Nov 14 16:11:03 PST 2018
Author: ericwf
Date: Wed Nov 14 16:11:02 2018
New Revision: 346914
URL: http://llvm.org/viewvc/llvm-project?rev=346914&view=rev
Log:
Get tests compiling with -Wunused-local-typedef
Modified:
libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp
libcxx/trunk/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/construct_piecewise_pair.pass.cpp
libcxx/trunk/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp
libcxx/trunk/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp
libcxx/trunk/test/std/containers/associative/map/map.access/index_key.pass.cpp
libcxx/trunk/test/std/containers/associative/map/map.access/index_rv_key.pass.cpp
libcxx/trunk/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp
libcxx/trunk/test/std/containers/container.adaptors/stack/stack.defn/emplace.pass.cpp
libcxx/trunk/test/std/containers/map_allocator_requirement_test_templates.h
libcxx/trunk/test/std/containers/sequences/forwardlist/forwardlist.modifiers/resize_size_value.pass.cpp
libcxx/trunk/test/std/containers/sequences/list/list.cons/input_iterator.pass.cpp
libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp
libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
libcxx/trunk/test/std/containers/set_allocator_requirement_test_templates.h
libcxx/trunk/test/std/containers/unord/unord.map/unord.map.elem/index.pass.cpp
libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/increment.pass.cpp
libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp
libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp
libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp
libcxx/trunk/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
libcxx/trunk/test/std/utilities/meta/meta.type.synop/endian.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/day.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month_day_last.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ok.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/year.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/index.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/month.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ok.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_month.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday_indexed.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/year.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp
libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp
libcxx/trunk/test/support/poisoned_hash_helper.hpp
libcxx/trunk/test/support/unique_ptr_test_helper.h
libcxx/trunk/utils/libcxx/test/config.py
Modified: libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,15 +24,25 @@ int identity(int v) { return v; }
int sum(int a, int b) { return a + b; }
struct Foo {
- int zero() const { return 0; }
- int identity(int v) const { return v; }
- int sum(int a, int b) const { return a + b; }
+ int zero() { return 0; }
+ int zero_const() const { return 1; }
+
+ int identity(int v) const { return v; }
+ int sum(int a, int b) const { return a + b; }
};
int main()
{
typedef std::pointer_to_unary_function<int, int> PUF;
typedef std::pointer_to_binary_function<int, int, int> PBF;
+
+ static_assert(
+ (std::is_same<PUF, decltype(std::ptr_fun<int, int>(identity))>::value),
+ "");
+ static_assert(
+ (std::is_same<PBF, decltype(std::ptr_fun<int, int, int>(sum))>::value),
+ "");
+
assert((std::ptr_fun<int, int>(identity)(4) == 4));
assert((std::ptr_fun<int, int, int>(sum)(4, 5) == 9));
@@ -43,6 +53,12 @@ int main()
typedef std::mem_fun_ref_t<int, Foo> MFR;
typedef std::const_mem_fun_ref_t<int, Foo> CMFR;
+ static_assert(
+ (std::is_same<MFR, decltype(std::mem_fun_ref(&Foo::zero))>::value), "");
+ static_assert((std::is_same<CMFR, decltype(std::mem_fun_ref(
+ &Foo::zero_const))>::value),
+ "");
+
assert((std::mem_fun_ref(&Foo::zero)(f) == 0));
assert((std::mem_fun_ref(&Foo::identity)(f, 5) == 5));
}
Modified: libcxx/trunk/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/construct_piecewise_pair.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/construct_piecewise_pair.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/construct_piecewise_pair.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/construct_piecewise_pair.pass.cpp Wed Nov 14 16:11:02 2018
@@ -106,14 +106,10 @@ struct CountCopiesAllocV2 {
int main()
{
- using PMR = ex::memory_resource*;
- using PMA = ex::polymorphic_allocator<char>;
-
{
using T = CountCopies;
using U = CountCopiesAllocV1;
using P = std::pair<T, U>;
- using TH = TestHarness<P>;
std::tuple<T> t1;
std::tuple<U> t2;
@@ -129,7 +125,6 @@ int main()
using T = CountCopiesAllocV1;
using U = CountCopiesAllocV2;
using P = std::pair<T, U>;
- using TH = TestHarness<P>;
std::tuple<T> t1;
std::tuple<U> t2;
@@ -146,7 +141,6 @@ int main()
using T = CountCopiesAllocV2;
using U = CountCopiesAllocV1;
using P = std::pair<T, U>;
- using TH = TestHarness<P>;
std::tuple<T> t1;
std::tuple<U> t2;
@@ -163,7 +157,6 @@ int main()
using T = CountCopiesAllocV2;
using U = CountCopies;
using P = std::pair<T, U>;
- using TH = TestHarness<P>;
std::tuple<T> t1;
std::tuple<U> t2;
Modified: libcxx/trunk/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp Wed Nov 14 16:11:02 2018
@@ -30,7 +30,7 @@ namespace ex = std::experimental::pmr;
int main()
{
using Alloc = NullAllocator<char>;
- using R = ex::resource_adaptor<Alloc>;
+
AllocController P;
ex::resource_adaptor<Alloc> r(Alloc{P});
ex::memory_resource & m1 = r;
Modified: libcxx/trunk/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp Wed Nov 14 16:11:02 2018
@@ -57,7 +57,6 @@ int main()
typedef std::chrono::system_clock Clock;
typedef Clock::time_point time_point;
- typedef Clock::duration duration;
std::chrono::milliseconds ms(500);
time_point t0 = Clock::now();
std::this_thread::sleep_for(ms);
Modified: libcxx/trunk/test/std/containers/associative/map/map.access/index_key.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.access/index_key.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.access/index_key.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.access/index_key.pass.cpp Wed Nov 14 16:11:02 2018
@@ -84,7 +84,6 @@ int main()
using Container = TCT::map<>;
using Key = Container::key_type;
using MappedType = Container::mapped_type;
- using ValueTp = Container::value_type;
ConstructController* cc = getConstructController();
cc->reset();
{
Modified: libcxx/trunk/test/std/containers/associative/map/map.access/index_rv_key.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.access/index_rv_key.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.access/index_rv_key.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.access/index_rv_key.pass.cpp Wed Nov 14 16:11:02 2018
@@ -61,7 +61,6 @@ int main()
using Container = TCT::map<>;
using Key = Container::key_type;
using MappedType = Container::mapped_type;
- using ValueTp = Container::value_type;
ConstructController* cc = getConstructController();
cc->reset();
{
Modified: libcxx/trunk/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/container.adaptors/queue/queue.defn/emplace.pass.cpp Wed Nov 14 16:11:02 2018
@@ -43,9 +43,9 @@ int main()
test_return_type<std::queue<int> > ();
test_return_type<std::queue<int, std::list<int> > > ();
- typedef Emplaceable T;
std::queue<Emplaceable> q;
#if TEST_STD_VER > 14
+ typedef Emplaceable T;
T& r1 = q.emplace(1, 2.5);
assert(&r1 == &q.back());
T& r2 = q.emplace(2, 3.5);
Modified: libcxx/trunk/test/std/containers/container.adaptors/stack/stack.defn/emplace.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/container.adaptors/stack/stack.defn/emplace.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/container.adaptors/stack/stack.defn/emplace.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/container.adaptors/stack/stack.defn/emplace.pass.cpp Wed Nov 14 16:11:02 2018
@@ -42,9 +42,9 @@ int main()
test_return_type<std::stack<int> > ();
test_return_type<std::stack<int, std::vector<int> > > ();
- typedef Emplaceable T;
std::stack<Emplaceable> q;
#if TEST_STD_VER > 14
+ typedef Emplaceable T;
T& r1 = q.emplace(1, 2.5);
assert(&r1 == &q.top());
T& r2 = q.emplace(2, 3.5);
Modified: libcxx/trunk/test/std/containers/map_allocator_requirement_test_templates.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/map_allocator_requirement_test_templates.h?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/map_allocator_requirement_test_templates.h (original)
+++ libcxx/trunk/test/std/containers/map_allocator_requirement_test_templates.h Wed Nov 14 16:11:02 2018
@@ -33,10 +33,6 @@ template <class Container>
void testMapInsert()
{
typedef typename Container::value_type ValueTp;
- typedef typename Container::key_type Key;
- typedef typename Container::mapped_type Mapped;
- typedef Container C;
- typedef std::pair<typename C::iterator, bool> R;
ConstructController* cc = getConstructController();
cc->reset();
{
@@ -297,8 +293,6 @@ void testMapEmplace()
typedef typename Container::key_type Key;
typedef typename Container::mapped_type Mapped;
typedef typename std::pair<Key, Mapped> NonConstKeyPair;
- typedef Container C;
- typedef std::pair<typename C::iterator, bool> R;
ConstructController* cc = getConstructController();
cc->reset();
{
@@ -630,7 +624,6 @@ template <class Container>
void testMultimapInsert()
{
typedef typename Container::value_type ValueTp;
- typedef Container C;
ConstructController* cc = getConstructController();
cc->reset();
{
@@ -704,7 +697,6 @@ template <class Container>
void testMultimapInsertHint()
{
typedef typename Container::value_type ValueTp;
- typedef Container C;
ConstructController* cc = getConstructController();
cc->reset();
{
Modified: libcxx/trunk/test/std/containers/sequences/forwardlist/forwardlist.modifiers/resize_size_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/forwardlist/forwardlist.modifiers/resize_size_value.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/forwardlist/forwardlist.modifiers/resize_size_value.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/forwardlist/forwardlist.modifiers/resize_size_value.pass.cpp Wed Nov 14 16:11:02 2018
@@ -88,7 +88,6 @@ int main()
{
// Test that the allocator's construct method is being used to
// construct the new elements and that it's called exactly N times.
- typedef int T;
typedef std::forward_list<int, ContainerTestAllocator<int, int>> Container;
ConstructController* cc = getConstructController();
cc->reset();
Modified: libcxx/trunk/test/std/containers/sequences/list/list.cons/input_iterator.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/list/list.cons/input_iterator.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/list/list.cons/input_iterator.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/list/list.cons/input_iterator.pass.cpp Wed Nov 14 16:11:02 2018
@@ -183,7 +183,6 @@ void test_ctor_under_alloc() {
int arr2[] = {1, 101, 42};
{
using C = TCT::list<>;
- using T = typename C::value_type;
using It = forward_iterator<int*>;
{
ExpectConstructGuard<int&> G(1);
@@ -196,7 +195,6 @@ void test_ctor_under_alloc() {
}
{
using C = TCT::list<>;
- using T = typename C::value_type;
using It = input_iterator<int*>;
{
ExpectConstructGuard<int&> G(1);
@@ -216,7 +214,6 @@ void test_ctor_under_alloc_with_alloc()
int arr2[] = {1, 101, 42};
{
using C = TCT::list<>;
- using T = typename C::value_type;
using It = forward_iterator<int*>;
using Alloc = typename C::allocator_type;
Alloc a;
@@ -231,7 +228,6 @@ void test_ctor_under_alloc_with_alloc()
}
{
using C = TCT::list<>;
- using T = typename C::value_type;
using It = input_iterator<int*>;
using Alloc = typename C::allocator_type;
Alloc a;
Modified: libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp Wed Nov 14 16:11:02 2018
@@ -121,7 +121,6 @@ void test_ctor_under_alloc() {
int arr2[] = {1, 101, 42};
{
using C = TCT::vector<>;
- using T = typename C::value_type;
using It = forward_iterator<int*>;
{
ExpectConstructGuard<int&> G(1);
@@ -134,7 +133,6 @@ void test_ctor_under_alloc() {
}
{
using C = TCT::vector<>;
- using T = typename C::value_type;
using It = input_iterator<int*>;
{
ExpectConstructGuard<int&> G(1);
Modified: libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp Wed Nov 14 16:11:02 2018
@@ -134,7 +134,6 @@ void test_ctor_under_alloc() {
int arr2[] = {1, 101, 42};
{
using C = TCT::vector<>;
- using T = typename C::value_type;
using It = forward_iterator<int*>;
using Alloc = typename C::allocator_type;
Alloc a;
@@ -149,7 +148,6 @@ void test_ctor_under_alloc() {
}
{
using C = TCT::vector<>;
- using T = typename C::value_type;
using It = input_iterator<int*>;
using Alloc = typename C::allocator_type;
Alloc a;
Modified: libcxx/trunk/test/std/containers/set_allocator_requirement_test_templates.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/set_allocator_requirement_test_templates.h?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/set_allocator_requirement_test_templates.h (original)
+++ libcxx/trunk/test/std/containers/set_allocator_requirement_test_templates.h Wed Nov 14 16:11:02 2018
@@ -32,8 +32,6 @@ template <class Container>
void testSetInsert()
{
typedef typename Container::value_type ValueTp;
- typedef Container C;
- typedef std::pair<typename C::iterator, bool> R;
ConstructController* cc = getConstructController();
cc->reset();
{
@@ -146,8 +144,6 @@ template <class Container>
void testSetEmplace()
{
typedef typename Container::value_type ValueTp;
- typedef Container C;
- typedef std::pair<typename C::iterator, bool> R;
ConstructController* cc = getConstructController();
cc->reset();
{
@@ -209,7 +205,6 @@ template <class Container>
void testSetEmplaceHint()
{
typedef typename Container::value_type ValueTp;
-
typedef Container C;
typedef typename C::iterator It;
ConstructController* cc = getConstructController();
@@ -289,7 +284,6 @@ template <class Container>
void testMultisetInsert()
{
typedef typename Container::value_type ValueTp;
- typedef Container C;
ConstructController* cc = getConstructController();
cc->reset();
{
@@ -356,8 +350,6 @@ template <class Container>
void testMultisetEmplace()
{
typedef typename Container::value_type ValueTp;
- typedef Container C;
- typedef std::pair<typename C::iterator, bool> R;
ConstructController* cc = getConstructController();
cc->reset();
{
Modified: libcxx/trunk/test/std/containers/unord/unord.map/unord.map.elem/index.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.map/unord.map.elem/index.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.map/unord.map.elem/index.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.map/unord.map.elem/index.pass.cpp Wed Nov 14 16:11:02 2018
@@ -119,7 +119,6 @@ int main()
using Container = TCT::unordered_map<>;
using Key = Container::key_type;
using MappedType = Container::mapped_type;
- using ValueTp = Container::value_type;
ConstructController* cc = getConstructController();
cc->reset();
{
Modified: libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/increment.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/increment.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/increment.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/increment.pass.cpp Wed Nov 14 16:11:02 2018
@@ -32,7 +32,6 @@ TEST_SUITE(directory_iterator_increment_
TEST_CASE(test_increment_signatures)
{
- using D = directory_iterator;
directory_iterator d; ((void)d);
std::error_code ec; ((void)ec);
Modified: libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp Wed Nov 14 16:11:02 2018
@@ -32,7 +32,6 @@ TEST_SUITE(directory_iterator_begin_end_
TEST_CASE(test_function_signatures)
{
- using D = directory_iterator;
directory_iterator d; ((void)d);
ASSERT_SAME_TYPE(decltype(begin(d)), directory_iterator);
Modified: libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp Wed Nov 14 16:11:02 2018
@@ -31,7 +31,6 @@ TEST_SUITE(recursive_directory_iterator_
TEST_CASE(test_increment_signatures)
{
- using D = recursive_directory_iterator;
recursive_directory_iterator d; ((void)d);
std::error_code ec; ((void)ec);
Modified: libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp Wed Nov 14 16:11:02 2018
@@ -32,7 +32,6 @@ TEST_SUITE(recursive_directory_iterator_
TEST_CASE(test_function_signatures)
{
- using D = recursive_directory_iterator;
recursive_directory_iterator d; ((void)d);
ASSERT_SAME_TYPE(decltype(begin(d)), recursive_directory_iterator);
Modified: libcxx/trunk/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp Wed Nov 14 16:11:02 2018
@@ -108,7 +108,6 @@ struct Times {
};
Times GetTimes(path const& p) {
- using Clock = file_time_type::clock;
StatT st;
if (::stat(p.c_str(), &st) == -1) {
std::error_code ec(errno, std::generic_category());
@@ -127,7 +126,6 @@ TimeSpec LastAccessTime(path const& p) {
TimeSpec LastWriteTime(path const& p) { return GetTimes(p).write; }
std::pair<TimeSpec, TimeSpec> GetSymlinkTimes(path const& p) {
- using Clock = file_time_type::clock;
StatT st;
if (::lstat(p.c_str(), &st) == -1) {
std::error_code ec(errno, std::generic_category());
@@ -510,7 +508,6 @@ TEST_CASE(last_write_time_symlink_test)
TEST_CASE(test_write_min_time)
{
- using Clock = file_time_type::clock;
scoped_test_env env;
const path p = env.create_file("file", 42);
const file_time_type old_time = last_write_time(p);
@@ -545,10 +542,6 @@ TEST_CASE(test_write_min_time)
}
TEST_CASE(test_write_max_time) {
- using Clock = file_time_type::clock;
- using Sec = std::chrono::seconds;
- using Hours = std::chrono::hours;
-
scoped_test_env env;
const path p = env.create_file("file", 42);
const file_time_type old_time = last_write_time(p);
Modified: libcxx/trunk/test/std/utilities/meta/meta.type.synop/endian.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/meta/meta.type.synop/endian.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/meta/meta.type.synop/endian.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/meta/meta.type.synop/endian.pass.cpp Wed Nov 14 16:11:02 2018
@@ -19,7 +19,6 @@
#include "test_macros.h"
int main() {
- typedef std::endian E;
static_assert(std::is_enum<std::endian>::value, "");
// Check that E is a scoped enum by checking for conversions.
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/day.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/day.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/day.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/day.pass.cpp Wed Nov 14 16:11:02 2018
@@ -23,7 +23,6 @@
int main()
{
using day = std::chrono::day;
- using month = std::chrono::month;
using month_day = std::chrono::month_day;
ASSERT_NOEXCEPT( std::declval<const month_day>().day());
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day.pass.cpp Wed Nov 14 16:11:02 2018
@@ -51,7 +51,6 @@ int main()
using year_month = std::chrono::year_month;
using month_day = std::chrono::month_day;
using year_month_day = std::chrono::year_month_day;
- using weekday = std::chrono::weekday;
constexpr month February = std::chrono::February;
constexpr year_month Feb2018{year{2018}, February};
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_day_last.pass.cpp Wed Nov 14 16:11:02 2018
@@ -41,13 +41,9 @@
int main()
{
- using month_weekday = std::chrono::month_weekday;
using month = std::chrono::month;
using year_month = std::chrono::year_month;
using year = std::chrono::year;
- using weekday_last = std::chrono::weekday_last;
- using weekday = std::chrono::weekday;
- using month_weekday_last = std::chrono::month_weekday_last;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.operators/year_month_weekday_last.pass.cpp Wed Nov 14 16:11:02 2018
@@ -43,7 +43,6 @@
int main()
{
using year_month = std::chrono::year_month;
- using month_weekday = std::chrono::month_weekday;
using year = std::chrono::year;
using month = std::chrono::month;
using weekday = std::chrono::weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/plus_minus.pass.cpp Wed Nov 14 16:11:02 2018
@@ -32,7 +32,6 @@ constexpr bool testConstexpr()
int main()
{
using year = std::chrono::year;
- using years = std::chrono::years;
ASSERT_NOEXCEPT(+std::declval<year>());
ASSERT_NOEXCEPT(-std::declval<year>());
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ctor.pass.cpp Wed Nov 14 16:11:02 2018
@@ -32,7 +32,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month_day_last.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month_day_last.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month_day_last.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/month_day_last.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ok.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ok.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ok.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ok.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_month.pass.cpp Wed Nov 14 16:11:02 2018
@@ -37,7 +37,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
using months = std::chrono::months;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/plus_minus_equal_year.pass.cpp Wed Nov 14 16:11:02 2018
@@ -37,7 +37,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
using years = std::chrono::years;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/year.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/year.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/year.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/year.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/comparisons.pass.cpp Wed Nov 14 16:11:02 2018
@@ -31,7 +31,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/minus.pass.cpp Wed Nov 14 16:11:02 2018
@@ -52,7 +52,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
using months = std::chrono::months;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/plus.pass.cpp Wed Nov 14 16:11:02 2018
@@ -68,7 +68,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using month_day_last = std::chrono::month_day_last;
using year_month_day_last = std::chrono::year_month_day_last;
using months = std::chrono::months;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.pass.cpp Wed Nov 14 16:11:02 2018
@@ -35,7 +35,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/index.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/index.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/index.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/index.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/month.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/month.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/month.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/month.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,8 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
- using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ok.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ok.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ok.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ok.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_month.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_month.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_month.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_month.pass.cpp Wed Nov 14 16:11:02 2018
@@ -37,11 +37,9 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
- using years = std::chrono::years;
using months = std::chrono::months;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/plus_minus_equal_year.pass.cpp Wed Nov 14 16:11:02 2018
@@ -37,12 +37,10 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
using years = std::chrono::years;
- using months = std::chrono::months;
ASSERT_NOEXCEPT( std::declval<year_month_weekday&>() += std::declval<years>());
ASSERT_SAME_TYPE(year_month_weekday&, decltype(std::declval<year_month_weekday&>() += std::declval<years>()));
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday_indexed.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday_indexed.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday_indexed.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/weekday_indexed.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,7 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/year.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/year.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/year.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/year.pass.cpp Wed Nov 14 16:11:02 2018
@@ -24,8 +24,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
- using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/comparisons.pass.cpp Wed Nov 14 16:11:02 2018
@@ -27,7 +27,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday_indexed = std::chrono::weekday_indexed;
using weekday = std::chrono::weekday;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/minus.pass.cpp Wed Nov 14 16:11:02 2018
@@ -55,7 +55,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/plus.pass.cpp Wed Nov 14 16:11:02 2018
@@ -56,7 +56,6 @@ int main()
{
using year = std::chrono::year;
using month = std::chrono::month;
- using day = std::chrono::day;
using weekday = std::chrono::weekday;
using weekday_indexed = std::chrono::weekday_indexed;
using year_month_weekday = std::chrono::year_month_weekday;
Modified: libcxx/trunk/test/support/poisoned_hash_helper.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/poisoned_hash_helper.hpp?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/support/poisoned_hash_helper.hpp (original)
+++ libcxx/trunk/test/support/poisoned_hash_helper.hpp Wed Nov 14 16:11:02 2018
@@ -147,7 +147,6 @@ void test_hash_enabled(InputKey const& k
#endif
// Hashable requirements
- using CKey = ConvertibleTo<Key>;
static_assert(can_hash<Hash(Key&)>(), "");
static_assert(can_hash<Hash(Key const&)>(), "");
static_assert(can_hash<Hash(Key&&)>(), "");
@@ -187,7 +186,6 @@ void test_hash_disabled() {
>::value, "");
// Hashable requirements
- using CKey = ConvertibleTo<Key>;
static_assert(!can_hash<Hash(Key&)>(), "");
static_assert(!can_hash<Hash(Key const&)>(), "");
static_assert(!can_hash<Hash(Key&&)>(), "");
Modified: libcxx/trunk/test/support/unique_ptr_test_helper.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/unique_ptr_test_helper.h?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/test/support/unique_ptr_test_helper.h (original)
+++ libcxx/trunk/test/support/unique_ptr_test_helper.h Wed Nov 14 16:11:02 2018
@@ -98,7 +98,6 @@ public:
template <class IncompleteT = IncompleteType,
class Del = std::default_delete<IncompleteT>, class... Args>
void doIncompleteTypeTest(int expect_alive, Args&&... ctor_args) {
- using ValueT = typename std::remove_all_extents<IncompleteT>::type;
checkNumIncompleteTypeAlive(expect_alive);
{
StoresIncomplete<IncompleteT, Del> sptr(std::forward<Args>(ctor_args)...);
Modified: libcxx/trunk/utils/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/libcxx/test/config.py?rev=346914&r1=346913&r2=346914&view=diff
==============================================================================
--- libcxx/trunk/utils/libcxx/test/config.py (original)
+++ libcxx/trunk/utils/libcxx/test/config.py Wed Nov 14 16:11:02 2018
@@ -931,9 +931,6 @@ class Configuration(object):
self.cxx.addWarningFlagIfSupported('-Wunused-variable')
self.cxx.addWarningFlagIfSupported('-Wunused-parameter')
self.cxx.addWarningFlagIfSupported('-Wunreachable-code')
- # FIXME: Enable the two warnings below.
- # self.cxx.addWarningFlagIfSupported('-Wno-conversion')
- self.cxx.addWarningFlagIfSupported('-Wno-unused-local-typedef')
std = self.get_lit_conf('std', None)
if std in ['c++98', 'c++03']:
# The '#define static_assert' provided by libc++ in C++03 mode
More information about the libcxx-commits
mailing list