Skip to content
4 changes: 2 additions & 2 deletions libcxx/include/__locale_dir/money.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ bool money_get<_CharT, _InputIterator>::__do_get(
__err |= ios_base::failbit;
return false;
}
for (++__b; __fd > 0; --__fd, ++__b) {
for (++__b; __fd > 0; --__fd, (void)++__b) {
if (__b == __e || !__ct.is(ctype_base::digit, *__b)) {
__err |= ios_base::failbit;
return false;
Expand All @@ -451,7 +451,7 @@ bool money_get<_CharT, _InputIterator>::__do_get(
}
}
if (__trailing_sign) {
for (unsigned __i = 1; __i < __trailing_sign->size(); ++__i, ++__b) {
for (unsigned __i = 1; __i < __trailing_sign->size(); ++__i, (void)++__b) {
if (__b == __e || *__b != (*__trailing_sign)[__i]) {
__err |= ios_base::failbit;
return false;
Expand Down
2 changes: 1 addition & 1 deletion libcxx/include/__locale_dir/num.h
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ num_put<_CharT, _OutputIterator>::do_put(iter_type __s, ios_base& __iob, char_ty
const numpunct<char_type>& __np = std::use_facet<numpunct<char_type> >(__iob.getloc());
typedef typename numpunct<char_type>::string_type string_type;
string_type __nm = __v ? __np.truename() : __np.falsename();
for (typename string_type::iterator __i = __nm.begin(); __i != __nm.end(); ++__i, ++__s)
for (typename string_type::iterator __i = __nm.begin(); __i != __nm.end(); ++__i, (void)++__s)
*__s = *__i;
return __s;
}
Expand Down
6 changes: 3 additions & 3 deletions libcxx/include/__locale_dir/pad_and_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ _LIBCPP_HIDE_FROM_ABI _OutputIterator __pad_and_output(
__ns -= __sz;
else
__ns = 0;
for (; __ob < __op; ++__ob, ++__s)
for (; __ob < __op; ++__ob, (void)++__s)
*__s = *__ob;
for (; __ns; --__ns, ++__s)
for (; __ns; --__ns, (void)++__s)
*__s = __fl;
for (; __ob < __oe; ++__ob, ++__s)
for (; __ob < __oe; ++__ob, (void)++__s)
*__s = *__ob;
__iob.width(0);
return __s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ piecewise_constant_distribution<_RealType>::param_type::param_type(
__areas_.assign(1, 0.0);
} else {
__densities_.reserve(__b_.size() - 1);
for (size_t __i = 0; __i < __b_.size() - 1; ++__i, ++__f_w)
for (size_t __i = 0; __i < __b_.size() - 1; ++__i, (void)++__f_w)
__densities_.push_back(*__f_w);
__init();
}
Expand Down
2 changes: 1 addition & 1 deletion libcxx/include/__random/piecewise_linear_distribution.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ piecewise_linear_distribution<_RealType>::param_type::param_type(
__areas_.assign(1, 0.0);
} else {
__densities_.reserve(__b_.size());
for (size_t __i = 0; __i < __b_.size(); ++__i, ++__f_w)
for (size_t __i = 0; __i < __b_.size(); ++__i, (void)++__f_w)
__densities_.push_back(*__f_w);
__init();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void test(InputIterator f, InputIterator l) {
assert(d.size() == static_cast<std::size_t>(std::distance(f, l)));
assert(static_cast<std::size_t>(std::distance(d.begin(), d.end())) == d.size());
LIBCPP_ASSERT(is_double_ended_contiguous_container_asan_correct(d));
for (const_iterator i = d.begin(), e = d.end(); i != e; ++i, ++f)
for (const_iterator i = d.begin(), e = d.end(); i != e; ++i, (void)++f)
assert(*i == *f);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void test(InputIterator f, InputIterator l, const Allocator& a) {
assert(d.size() == static_cast<std::size_t>(std::distance(f, l)));
assert(static_cast<std::size_t>(std::distance(d.begin(), d.end())) == d.size());
LIBCPP_ASSERT(is_double_ended_contiguous_container_asan_correct(d));
for (const_iterator i = d.begin(), e = d.end(); i != e; ++i, ++f)
for (const_iterator i = d.begin(), e = d.end(); i != e; ++i, (void)++f)
assert(*i == *f);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TEST_CONSTEXPR_CXX20 void test(Iterator first, Iterator last) {
C c(first, last);
LIBCPP_ASSERT(c.__invariants());
assert(c.size() == static_cast<std::size_t>(std::distance(first, last)));
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, ++first)
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, (void)++first)
assert(*i == *first);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ TEST_CONSTEXPR_CXX20 void test(Iterator first, Iterator last, const typename C::
C c(first, last, a);
LIBCPP_ASSERT(c.__invariants());
assert(c.size() == static_cast<std::size_t>(std::distance(first, last)));
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, ++first)
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, (void)++first)
assert(*i == *first);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ TEST_CONSTEXPR_CXX20 void test(Iterator first, Iterator last) {
LIBCPP_ASSERT(c.__invariants());
assert(c.size() == static_cast<std::size_t>(std::distance(first, last)));
LIBCPP_ASSERT(is_contiguous_container_asan_correct(c));
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, ++first)
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, (void)++first)
assert(*i == *first);
}
// Test with an empty range
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ TEST_CONSTEXPR_CXX20 void test(Iterator first, Iterator last, const A& a) {
LIBCPP_ASSERT(c.__invariants());
assert(c.size() == static_cast<std::size_t>(std::distance(first, last)));
LIBCPP_ASSERT(is_contiguous_container_asan_correct(c));
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, ++first)
for (typename C::const_iterator i = c.cbegin(), e = c.cend(); i != e; ++i, (void)++first)
assert(*i == *first);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

// Bionic has minimal locale support, investigate this later.
// XFAIL: LIBCXX-ANDROID-FIXME
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.en_US.UTF-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

// NetBSD does not support LC_MONETARY at the moment
// XFAIL: netbsd
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.fr_FR.UTF-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// Ensure that money_get::do_get correct works when the input doesn't fit into the stack buffer
// (100 characters currently).

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <cassert>
#include <cstddef>
#include <ios>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// ADDITIONAL_COMPILE_FLAGS: -DRU_MON_THOU_SEP=%{LOCALE_CONV_RU_RU_UTF_8_MON_THOUSANDS_SEP}

// XFAIL: glibc-old-ru_RU-decimal-point
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// <locale>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// XFAIL: netbsd

// XFAIL: LIBCXX-FREEBSD-FIXME
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.zh_CN.UTF-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

// Bionic has minimal locale support, investigate this later.
// XFAIL: LIBCXX-ANDROID-FIXME
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.en_US.UTF-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

// Bionic has minimal locale support, investigate this later.
// XFAIL: LIBCXX-ANDROID-FIXME
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.en_US.UTF-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// NetBSD does not support LC_MONETARY at the moment
// XFAIL: netbsd

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.fr_FR.UTF-8

// ADDITIONAL_COMPILE_FLAGS: -DFR_MON_THOU_SEP=%{LOCALE_CONV_FR_FR_UTF_8_MON_THOUSANDS_SEP}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// NetBSD does not support LC_MONETARY at the moment
// XFAIL: netbsd

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.ru_RU.UTF-8

// ADDITIONAL_COMPILE_FLAGS: -DRU_MON_THOU_SEP=%{LOCALE_CONV_RU_RU_UTF_8_MON_THOUSANDS_SEP}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// XFAIL: netbsd

// XFAIL: LIBCXX-FREEBSD-FIXME
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.zh_CN.UTF-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// Bionic has minimal locale support, investigate this later.
// XFAIL: LIBCXX-ANDROID-FIXME

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

// REQUIRES: locale.en_US.UTF-8

#include <locale>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

// iter_type put(iter_type s, ios_base& iob, char_type fill, bool v) const;

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// iter_type put(iter_type s, ios_base& iob, char_type fill, double v) const;

// XFAIL: win32-broken-printf-a-precision
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// iter_type put(iter_type s, ios_base& iob, char_type fill, double v) const;

// XFAIL: win32-broken-printf-g-precision
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

// iter_type put(iter_type s, ios_base& iob, char_type fill, long v) const;

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// iter_type put(iter_type s, ios_base& iob, char_type fill, long double v) const;

// XFAIL: win32-broken-printf-a-precision
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// iter_type put(iter_type s, ios_base& iob, char_type fill, long double v) const;

// XFAIL: win32-broken-printf-g-precision
// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

// iter_type put(iter_type s, ios_base& iob, char_type fill, long long v) const;

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

// iter_type put(iter_type s, ios_base& iob, char_type fill, unsigned long v) const;

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

// iter_type put(iter_type s, ios_base& iob, char_type fill, unsigned long long v) const;

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <locale>
#include <ios>
#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@
// InputIteratorB lastB,
// InputIteratorW firstW);

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <random>

#include <cassert>
#include <vector>

#include "test_iterators.h"
#include "test_macros.h"

int main(int, char**)
{
{
typedef std::piecewise_constant_distribution<> D;
typedef cpp17_input_iterator<const double*> InIt;
double b[] = {10};
double p[] = {12};
D d(b, b, p);
D d((InIt(b)), (InIt(b)), (InIt(p)));
std::vector<double> iv = d.intervals();
assert(iv.size() == 2);
assert(iv[0] == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,25 @@
// param_type(InputIteratorB firstB, InputIteratorB lastB,
// InputIteratorW firstW);

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <random>

#include <cassert>
#include <vector>

#include "test_iterators.h"
#include "test_macros.h"

int main(int, char**)
{
{
typedef std::piecewise_constant_distribution<> D;
typedef D::param_type P;
typedef cpp17_input_iterator<const double*> InIt;
double b[] = {10};
double p[] = {12};
P pa(b, b, p);
P pa((InIt(b)), (InIt(b)), (InIt(p)));
std::vector<double> iv = pa.intervals();
assert(iv.size() == 2);
assert(iv[0] == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@
// InputIteratorB lastB,
// InputIteratorW firstW);

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <random>

#include <cassert>
#include <vector>

#include "test_iterators.h"
#include "test_macros.h"

int main(int, char**)
{
{
typedef std::piecewise_linear_distribution<> D;
typedef cpp17_input_iterator<const double*> InIt;
double b[] = {10};
double p[] = {12};
D d(b, b, p);
D d((InIt(b)), (InIt(b)), (InIt(p)));
std::vector<double> iv = d.intervals();
assert(iv.size() == 2);
assert(iv[0] == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,25 @@
// param_type(InputIteratorB firstB, InputIteratorB lastB,
// InputIteratorW firstW);

// XFAIL: FROZEN-CXX03-HEADERS-FIXME

#include <random>

#include <cassert>
#include <vector>

#include "test_iterators.h"
#include "test_macros.h"

int main(int, char**)
{
{
typedef std::piecewise_linear_distribution<> D;
typedef D::param_type P;
typedef cpp17_input_iterator<const double*> InIt;
double b[] = {10};
double p[] = {12};
P pa(b, b, p);
P pa((InIt(b)), (InIt(b)), (InIt(p)));
std::vector<double> iv = pa.intervals();
assert(iv.size() == 2);
assert(iv[0] == 0);
Expand Down
Loading
Loading