diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2017-08-11 23:53:53 +0300 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2017-08-11 23:53:53 +0300 |
commit | aae63566dc6b33da741364dec97fd7f34d5efb3a (patch) | |
tree | 738e4f26d5347cb31b0479081376c06a78d4a19e /libcxx/test/std/utilities | |
parent | be7e0013695c1efcb84a9fdc7127ef155f6c9503 (diff) |
[libcxx] [test] Rename _Tp to T. NFCI.
This improves readability and (theoretically) improves portability,
as _Ugly names are reserved.
llvm-svn: 310758
Diffstat (limited to 'libcxx/test/std/utilities')
7 files changed, 14 insertions, 14 deletions
diff --git a/libcxx/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp b/libcxx/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp index b85f439ba7a0..19de6f7f0c59 100644 --- a/libcxx/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp @@ -11,7 +11,7 @@ #include <functional> #include <string> -template <class _Tp> +template <class T> struct is_transparent { private: @@ -19,7 +19,7 @@ private: template <class _Up> static __two __test(...); template <class _Up> static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test<T>(0)) == 1; }; diff --git a/libcxx/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp b/libcxx/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp index db7168c44f8b..0b9796027e93 100644 --- a/libcxx/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp @@ -11,7 +11,7 @@ #include <functional> #include <string> -template <class _Tp> +template <class T> struct is_transparent { private: @@ -19,7 +19,7 @@ private: template <class _Up> static __two __test(...); template <class _Up> static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test<T>(0)) == 1; }; diff --git a/libcxx/test/std/utilities/function.objects/comparisons/transparent.pass.cpp b/libcxx/test/std/utilities/function.objects/comparisons/transparent.pass.cpp index f353fe7a72a6..40b0f5e0752c 100644 --- a/libcxx/test/std/utilities/function.objects/comparisons/transparent.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/comparisons/transparent.pass.cpp @@ -11,7 +11,7 @@ #include <functional> #include <string> -template <class _Tp> +template <class T> struct is_transparent { private: @@ -19,7 +19,7 @@ private: template <class _Up> static __two __test(...); template <class _Up> static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test<T>(0)) == 1; }; diff --git a/libcxx/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp b/libcxx/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp index 00e513ec546f..b915863f29c8 100644 --- a/libcxx/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp @@ -11,7 +11,7 @@ #include <functional> #include <string> -template <class _Tp> +template <class T> struct is_transparent { private: @@ -19,7 +19,7 @@ private: template <class _Up> static __two __test(...); template <class _Up> static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test<T>(0)) == 1; }; diff --git a/libcxx/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp b/libcxx/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp index 24847dd70f86..2f8a707bfa2f 100644 --- a/libcxx/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp +++ b/libcxx/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp @@ -24,8 +24,8 @@ #include <chrono> -template <class _Tp> -void test(const _Tp &) {} +template <class T> +void test(const T &) {} int main() { diff --git a/libcxx/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp b/libcxx/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp index cdb38dfce3f5..4458d6f213fa 100644 --- a/libcxx/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp +++ b/libcxx/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp @@ -26,8 +26,8 @@ #include <chrono> -template <class _Tp> -void test(const _Tp &) {} +template <class T> +void test(const T &) {} int main() { diff --git a/libcxx/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp b/libcxx/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp index dfc08a3bca69..deb4615fa5a1 100644 --- a/libcxx/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp +++ b/libcxx/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp @@ -24,8 +24,8 @@ #include <chrono> -template <class _Tp> -void test(const _Tp &) {} +template <class T> +void test(const T &) {} int main() { |