mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-12 12:48:59 +00:00
[libcxx] [test] Rename _Up to U, etc. NFCI.
This improves readability and (theoretically) improves portability, as _Ugly names are reserved. This performs additional de-uglification, so all of these tests follow the example of iterator.traits/empty.pass.cpp. llvm-svn: 310761
This commit is contained in:
parent
ed76ab3f1c
commit
709be5eef2
@ -25,8 +25,8 @@ struct has_value_type
|
||||
{
|
||||
private:
|
||||
struct two {char lx; char lxx;};
|
||||
template <class _Up> static two test(...);
|
||||
template <class _Up> static char test(typename _Up::value_type* = 0);
|
||||
template <class U> static two test(...);
|
||||
template <class U> static char test(typename U::value_type* = 0);
|
||||
public:
|
||||
static const bool value = sizeof(test<T>(0)) == 1;
|
||||
};
|
||||
|
@ -15,11 +15,11 @@ template <class T>
|
||||
struct is_transparent
|
||||
{
|
||||
private:
|
||||
struct __two {char __lx; char __lxx;};
|
||||
template <class _Up> static __two __test(...);
|
||||
template <class _Up> static char __test(typename _Up::is_transparent* = 0);
|
||||
struct two {char lx; char lxx;};
|
||||
template <class U> static two test(...);
|
||||
template <class U> static char test(typename U::is_transparent* = 0);
|
||||
public:
|
||||
static const bool value = sizeof(__test<T>(0)) == 1;
|
||||
static const bool value = sizeof(test<T>(0)) == 1;
|
||||
};
|
||||
|
||||
|
||||
|
@ -15,11 +15,11 @@ template <class T>
|
||||
struct is_transparent
|
||||
{
|
||||
private:
|
||||
struct __two {char __lx; char __lxx;};
|
||||
template <class _Up> static __two __test(...);
|
||||
template <class _Up> static char __test(typename _Up::is_transparent* = 0);
|
||||
struct two {char lx; char lxx;};
|
||||
template <class U> static two test(...);
|
||||
template <class U> static char test(typename U::is_transparent* = 0);
|
||||
public:
|
||||
static const bool value = sizeof(__test<T>(0)) == 1;
|
||||
static const bool value = sizeof(test<T>(0)) == 1;
|
||||
};
|
||||
|
||||
|
||||
|
@ -15,11 +15,11 @@ template <class T>
|
||||
struct is_transparent
|
||||
{
|
||||
private:
|
||||
struct __two {char __lx; char __lxx;};
|
||||
template <class _Up> static __two __test(...);
|
||||
template <class _Up> static char __test(typename _Up::is_transparent* = 0);
|
||||
struct two {char lx; char lxx;};
|
||||
template <class U> static two test(...);
|
||||
template <class U> static char test(typename U::is_transparent* = 0);
|
||||
public:
|
||||
static const bool value = sizeof(__test<T>(0)) == 1;
|
||||
static const bool value = sizeof(test<T>(0)) == 1;
|
||||
};
|
||||
|
||||
|
||||
|
@ -15,11 +15,11 @@ template <class T>
|
||||
struct is_transparent
|
||||
{
|
||||
private:
|
||||
struct __two {char __lx; char __lxx;};
|
||||
template <class _Up> static __two __test(...);
|
||||
template <class _Up> static char __test(typename _Up::is_transparent* = 0);
|
||||
struct two {char lx; char lxx;};
|
||||
template <class U> static two test(...);
|
||||
template <class U> static char test(typename U::is_transparent* = 0);
|
||||
public:
|
||||
static const bool value = sizeof(__test<T>(0)) == 1;
|
||||
static const bool value = sizeof(test<T>(0)) == 1;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user