diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2017-08-11 20:54:01 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2017-08-11 20:54:01 +0000 |
commit | 55467c46854b5cdf32e7cbdc249c60a6bb436f99 (patch) | |
tree | eb9d469a9a3b13f7267969468991cc374a12a74a /libcxx/test/std/input.output/iostream.format | |
parent | aae63566dc6b33da741364dec97fd7f34d5efb3a (diff) | |
download | bcm5719-llvm-55467c46854b5cdf32e7cbdc249c60a6bb436f99.tar.gz bcm5719-llvm-55467c46854b5cdf32e7cbdc249c60a6bb436f99.zip |
[libcxx] [test] Rename __c to ch. NFCI.
This improves readability and (theoretically) improves portability,
as __ugly names are reserved.
llvm-svn: 310759
Diffstat (limited to 'libcxx/test/std/input.output/iostream.format')
37 files changed, 148 insertions, 148 deletions
diff --git a/libcxx/test/std/input.output/iostream.format/ext.manip/put_money.pass.cpp b/libcxx/test/std/input.output/iostream.format/ext.manip/put_money.pass.cpp index 66be9f0f7f1..342e33724cc 100644 --- a/libcxx/test/std/input.output/iostream.format/ext.manip/put_money.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/ext.manip/put_money.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = str_.size(); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp b/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp index d12b91cc0cb..dae74f0401f 100644 --- a/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/ext.manip/put_time.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/streambuf.pass.cpp b/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/streambuf.pass.cpp index a599d4d3d02..6b6737a765d 100644 --- a/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/streambuf.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/streambuf.pass.cpp @@ -41,18 +41,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = str_.size(); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf.pass.cpp b/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf.pass.cpp index e7327293bf8..0a48393e01d 100644 --- a/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf.pass.cpp @@ -38,18 +38,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf_chart.pass.cpp b/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf_chart.pass.cpp index 292cf7c3b11..c6368b44afb 100644 --- a/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf_chart.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf_chart.pass.cpp @@ -39,18 +39,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/bool.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/bool.pass.cpp index fe038a7cc1a..00332f7739b 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/bool.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/bool.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/double.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/double.pass.cpp index 197e4602ff3..1ee2c565a91 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/double.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/double.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/float.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/float.pass.cpp index d31da5a18be..db64b6603dc 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/float.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/float.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/int.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/int.pass.cpp index 1b33280e669..5e601a90cb2 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/int.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/int.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long.pass.cpp index 7cf46096d02..125c0800a14 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_double.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_double.pass.cpp index dba3f8a6815..4b235f405ee 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_double.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_double.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_long.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_long.pass.cpp index 1174a0934ed..44b189d506f 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_long.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/long_long.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp index f6589397ed8..a8bdaba86ff 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/short.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/short.pass.cpp index 3b8182c1b62..06b6e5c627f 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/short.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/short.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_int.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_int.pass.cpp index 61057f7b306..e6070ef917f 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_int.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_int.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long.pass.cpp index 4558993e8e1..7f8cf4608f8 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long_long.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long_long.pass.cpp index 1727b3657ce..59be66fb6ae 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long_long.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_long_long.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_short.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_short.pass.cpp index a42cd562885..6508f2dab2b 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_short.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/unsigned_short.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT.pass.cpp index b778da2240a..26bfd89dcbb 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(__c); + str_.push_back(ch); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT_pointer.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT_pointer.pass.cpp index 29153c1d424..1f05684b50b 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT_pointer.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/CharT_pointer.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(__c); + str_.push_back(ch); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char.pass.cpp index 91ee08cd056..0fe2c352eea 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_pointer.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_pointer.pass.cpp index 1eb48d378e4..f5e8ad40d36 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_pointer.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_pointer.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide.pass.cpp index a50e376643c..09784c034c8 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(__c); + str_.push_back(ch); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide_pointer.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide_pointer.pass.cpp index 5c900e6ae53..2e40cf40659 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide_pointer.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/char_to_wide_pointer.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(__c); + str_.push_back(ch); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char.pass.cpp index d57d0e7075b..8ed0bfbdb43 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char_pointer.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char_pointer.pass.cpp index e51e8815730..e3ff0470a8f 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char_pointer.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/signed_char_pointer.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char.pass.cpp index 9956f3b0162..32c044d7272 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char_pointer.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char_pointer.pass.cpp index d87e733c09d..199c5dfd938 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char_pointer.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.character/unsigned_char_pointer.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/basic_ios.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/basic_ios.pass.cpp index ef7e292e901..9d45af0fd1a 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/basic_ios.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/basic_ios.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ios_base.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ios_base.pass.cpp index 933e01c66e8..21260d3649c 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ios_base.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ios_base.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ostream.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ostream.pass.cpp index 5c0604b73d4..d4516d2f897 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ostream.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ostream.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/streambuf.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/streambuf.pass.cpp index a26450ae5bf..e510825b64a 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/streambuf.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/streambuf.pass.cpp @@ -41,18 +41,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/endl.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/endl.pass.cpp index 72df6085571..9e8a5c8f018 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/endl.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/endl.pass.cpp @@ -37,18 +37,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } virtual int diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/ends.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/ends.pass.cpp index dcded343431..f372701509b 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/ends.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.manip/ends.pass.cpp @@ -35,18 +35,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.rvalue/CharT_pointer.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.rvalue/CharT_pointer.pass.cpp index 83210c08767..f04d468ad3c 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.rvalue/CharT_pointer.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.rvalue/CharT_pointer.pass.cpp @@ -39,18 +39,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/put.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/put.pass.cpp index 0958f833023..87a94ed428b 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/put.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/put.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; diff --git a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/write.pass.cpp b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/write.pass.cpp index 0d6eb3f226f..71f9ad66b6d 100644 --- a/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/write.pass.cpp +++ b/libcxx/test/std/input.output/iostream.format/output.streams/ostream.unformatted/write.pass.cpp @@ -34,18 +34,18 @@ public: protected: virtual typename base::int_type - overflow(typename base::int_type __c = base::traits_type::eof()) + overflow(typename base::int_type ch = base::traits_type::eof()) { - if (__c != base::traits_type::eof()) + if (ch != base::traits_type::eof()) { int n = static_cast<int>(str_.size()); - str_.push_back(static_cast<CharT>(__c)); + str_.push_back(static_cast<CharT>(ch)); str_.resize(str_.capacity()); base::setp(const_cast<CharT*>(str_.data()), const_cast<CharT*>(str_.data() + str_.size())); base::pbump(n+1); } - return __c; + return ch; } }; |