forked from OSchip/llvm-project
Fix more -Wshadow warnings introduced by recent Clang change
llvm-svn: 299411
This commit is contained in:
parent
53ddd72595
commit
61329522af
|
@ -92,7 +92,6 @@ int main()
|
||||||
V(3, 2),
|
V(3, 2),
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
typedef std::pair<const int, double> V;
|
|
||||||
typedef min_allocator<V> A;
|
typedef min_allocator<V> A;
|
||||||
typedef test_compare<std::less<int> > C;
|
typedef test_compare<std::less<int> > C;
|
||||||
A a;
|
A a;
|
||||||
|
@ -106,7 +105,6 @@ int main()
|
||||||
assert(m.get_allocator() == a);
|
assert(m.get_allocator() == a);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef std::pair<const int, double> V;
|
|
||||||
typedef explicit_allocator<V> A;
|
typedef explicit_allocator<V> A;
|
||||||
typedef test_compare<std::less<int> > C;
|
typedef test_compare<std::less<int> > C;
|
||||||
A a;
|
A a;
|
||||||
|
|
|
@ -183,7 +183,6 @@ int main()
|
||||||
#endif
|
#endif
|
||||||
#if TEST_STD_VER > 11
|
#if TEST_STD_VER > 11
|
||||||
{
|
{
|
||||||
typedef std::pair<const int, double> V;
|
|
||||||
typedef std::multimap<int, double, std::less<>> M;
|
typedef std::multimap<int, double, std::less<>> M;
|
||||||
|
|
||||||
typedef std::pair<M::iterator, M::iterator> R;
|
typedef std::pair<M::iterator, M::iterator> R;
|
||||||
|
|
|
@ -147,7 +147,6 @@ int main()
|
||||||
#endif
|
#endif
|
||||||
#if TEST_STD_VER > 11
|
#if TEST_STD_VER > 11
|
||||||
{
|
{
|
||||||
typedef std::pair<const int, double> V;
|
|
||||||
typedef std::multimap<int, double, std::less<>> M;
|
typedef std::multimap<int, double, std::less<>> M;
|
||||||
typedef M::iterator R;
|
typedef M::iterator R;
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,6 @@ int main()
|
||||||
#endif
|
#endif
|
||||||
#if TEST_STD_VER > 11
|
#if TEST_STD_VER > 11
|
||||||
{
|
{
|
||||||
typedef std::pair<const int, double> V;
|
|
||||||
typedef std::multimap<int, double, std::less<>> M;
|
typedef std::multimap<int, double, std::less<>> M;
|
||||||
typedef M::iterator R;
|
typedef M::iterator R;
|
||||||
V ar[] =
|
V ar[] =
|
||||||
|
|
|
@ -155,7 +155,6 @@ int main()
|
||||||
#endif
|
#endif
|
||||||
#if TEST_STD_VER > 11
|
#if TEST_STD_VER > 11
|
||||||
{
|
{
|
||||||
typedef std::pair<const int, double> V;
|
|
||||||
typedef std::multimap<int, double, std::less<>> M;
|
typedef std::multimap<int, double, std::less<>> M;
|
||||||
typedef M::iterator R;
|
typedef M::iterator R;
|
||||||
V ar[] =
|
V ar[] =
|
||||||
|
|
|
@ -216,7 +216,6 @@ void test_throws()
|
||||||
#ifndef TEST_HAS_NO_EXCEPTIONS
|
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||||
using T = ThrowAssign;
|
using T = ThrowAssign;
|
||||||
{
|
{
|
||||||
using T = ThrowAssign;
|
|
||||||
optional<T> opt;
|
optional<T> opt;
|
||||||
try {
|
try {
|
||||||
opt = 42;
|
opt = 42;
|
||||||
|
|
Loading…
Reference in New Issue