diff options
| author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2017-08-11 20:54:06 +0000 |
|---|---|---|
| committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2017-08-11 20:54:06 +0000 |
| commit | ed76ab3f1cf33bc6d46d7b767fc40b8c556bc62b (patch) | |
| tree | dfd64cc86647eeaf1ac076f4c98bca678a963ad0 /libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan | |
| parent | 55467c46854b5cdf32e7cbdc249c60a6bb436f99 (diff) | |
| download | bcm5719-llvm-ed76ab3f1cf33bc6d46d7b767fc40b8c556bc62b.tar.gz bcm5719-llvm-ed76ab3f1cf33bc6d46d7b767fc40b8c556bc62b.zip | |
[libcxx] [test] Rename __x to x. NFCI.
This improves readability and (theoretically) improves portability,
as __ugly names are reserved.
llvm-svn: 310760
Diffstat (limited to 'libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan')
2 files changed, 11 insertions, 10 deletions
diff --git a/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp b/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp index 246467bfc2c..d15defc2cab 100644 --- a/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp +++ b/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp @@ -1,3 +1,4 @@ + //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure @@ -28,17 +29,17 @@ template <class T = void> struct identity : std::unary_function<T, T> { - constexpr const T& operator()(const T& __x) const { return __x;} + constexpr const T& operator()(const T& x) const { return x;} }; template <> struct identity<void> { template <class T> - constexpr auto operator()(T&& __x) const - _NOEXCEPT_(noexcept(_VSTD::forward<T>(__x))) - -> decltype (_VSTD::forward<T>(__x)) - { return _VSTD::forward<T>(__x); } + constexpr auto operator()(T&& x) const + _NOEXCEPT_(noexcept(_VSTD::forward<T>(x))) + -> decltype (_VSTD::forward<T>(x)) + { return _VSTD::forward<T>(x); } }; template <class Iter1, class BOp, class UOp, class Iter2> diff --git a/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp b/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp index 453e0367a57..b38b9a5afed 100644 --- a/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp +++ b/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp @@ -28,17 +28,17 @@ template <class T = void> struct identity : std::unary_function<T, T> { - constexpr const T& operator()(const T& __x) const { return __x;} + constexpr const T& operator()(const T& x) const { return x;} }; template <> struct identity<void> { template <class T> - constexpr auto operator()(T&& __x) const - _NOEXCEPT_(noexcept(_VSTD::forward<T>(__x))) - -> decltype (_VSTD::forward<T>(__x)) - { return _VSTD::forward<T>(__x); } + constexpr auto operator()(T&& x) const + _NOEXCEPT_(noexcept(_VSTD::forward<T>(x))) + -> decltype (_VSTD::forward<T>(x)) + { return _VSTD::forward<T>(x); } }; template <class Iter1, class BOp, class UOp, class T, class Iter2> |

