Skip to content

Commit f5832ba

Browse files
[libc++][test] Cleanup typos and unnecessary semicolons (llvm#73435)
I've structured this into a series of commits for even easier reviewing, if that helps. I could easily split this up into separate PRs if desired, but as this is low-risk with simple edits, I thought one PR would be easiest. * Drop unnecessary semicolons after function definitions. * Cleanup comment typos. * Cleanup `static_assert` typos. * Cleanup test code typos. + There should be no functional changes, assuming I've changed all occurrences. * ~~Fix massive test code typos.~~ + This was a real problem, but needed more surgery. I reverted those changes here, and @philnik777 is fixing this properly with llvm#73444. * clang-formatting as requested by the CI.
1 parent af3c5a7 commit f5832ba

File tree

93 files changed

+239
-243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+239
-243
lines changed

libcxx/test/libcxx/algorithms/alg.modifying.operations/copy_move_nontrivial.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ constexpr bool test() {
302302
// Copying from `bool` to `char` will invoke the optimization, so only check one direction.
303303
test_copy_and_move<char, bool>();
304304

305-
// Copying between different structs with the same represenation (there is no way to guarantee the representation is
305+
// Copying between different structs with the same representation (there is no way to guarantee the representation is
306306
// the same).
307307
test_copy_and_move<S1, S2>();
308-
// Copying between different unions with the same represenation.
308+
// Copying between different unions with the same representation.
309309
test_copy_and_move<U1, U2>();
310310

311311
// Copying from a regular pointer to a void pointer (these are not considered trivially copyable).

libcxx/test/libcxx/algorithms/pstl.robust_against_customization_points_not_working.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// UNSUPPORTED: c++03, c++11, c++14
1010
// UNSUPPORTED: libcpp-has-no-incomplete-pstl
1111

12-
// Having a customization point outside the module doesn't work, so this test is inherintly module-hostile.
12+
// Having a customization point outside the module doesn't work, so this test is inherently module-hostile.
1313
// UNSUPPORTED: clang-modules-build
1414

1515
// Make sure that the customization points get called properly when overloaded

libcxx/test/libcxx/containers/views/mdspan/layout_stride/assert.conversion.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int main(int, char**) {
101101
([=] { std::layout_stride::template mapping<std::extents<signed char, D, 10>> m(arg); }()),
102102
"layout_stride::mapping converting ctor: other.required_span_size() must be representable as index_type.");
103103
}
104-
// base offset must be 0 (i.e. mapping(0,...,0)==0) for a strided layout with positiv strides
104+
// base offset must be 0 (i.e. mapping(0,...,0)==0) for a strided layout with positive strides
105105
{
106106
always_convertible_layout::mapping<std::dextents<int, 2>> offset_map(std::dextents<int, 2>{10, 10}, 3);
107107
TEST_LIBCPP_ASSERT_FAILURE(

libcxx/test/libcxx/diagnostics/bit.nodiscard_extensions.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_NODISCARD_EXT
1212

1313
// Check that <bit> functions aren't marked [[nodiscard]] when
14-
// _LIBCPP_DISBALE_NODISCARD_EXT is defined
14+
// _LIBCPP_DISABLE_NODISCARD_EXT is defined
1515

1616
#include <bit>
1717

libcxx/test/libcxx/diagnostics/chrono.nodiscard_extensions.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// Check that format functions aren't marked [[nodiscard]] when
10-
// _LIBCPP_DISBALE_NODISCARD_EXT is defined
10+
// _LIBCPP_DISABLE_NODISCARD_EXT is defined
1111

1212
// UNSUPPORTED: c++03, c++11, c++14, c++17
1313
// UNSUPPORTED: no-filesystem, no-localization, no-tzdb

libcxx/test/libcxx/diagnostics/format.nodiscard_extensions.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// Check that format functions aren't marked [[nodiscard]] when
10-
// _LIBCPP_DISBALE_NODISCARD_EXT is defined
10+
// _LIBCPP_DISABLE_NODISCARD_EXT is defined
1111

1212
// TODO FMT This test should not require std::to_chars(floating-point)
1313
// XFAIL: availability-fp_to_chars-missing

libcxx/test/libcxx/diagnostics/pstl.nodiscard_extensions.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// Check that PSTL algorithms aren't marked [[nodiscard]] when
10-
// _LIBCPP_DISBALE_NODISCARD_EXT is defined
10+
// _LIBCPP_DISABLE_NODISCARD_EXT is defined
1111

1212
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_NODISCARD_EXT
1313

libcxx/test/libcxx/diagnostics/ranges.nodiscard_extensions.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// Check that ranges algorithms aren't marked [[nodiscard]] when
10-
// _LIBCPP_DISBALE_NODISCARD_EXT is defined
10+
// _LIBCPP_DISABLE_NODISCARD_EXT is defined
1111

1212
// UNSUPPORTED: c++03, c++11, c++14, c++17
1313

libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/construct_piecewise_pair.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// void polymorphic_allocator<T>::construct(pair<T1, T2>*, piecewise_construct_t
2222
// tuple<Args1...> x, tuple<Args2...>)
2323

24-
// The stardard specifiers a tranformation to uses-allocator construction as
24+
// The standard specifies a transformation to uses-allocator construction as
2525
// follows:
2626
// - If uses_allocator_v<T1,memory_resource*> is false and
2727
// is_constructible_v<T,Args1...> is true, then xprime is x.
@@ -36,7 +36,7 @@
3636
//
3737
// The use of "xprime = tuple_cat(..., std::move(x), ...)" causes all of the
3838
// objects in 'x' to be copied into 'xprime'. If 'x' contains any types which
39-
// are stored by value this causes an unessary copy to occur. To prevent this
39+
// are stored by value this causes an unnecessary copy to occur. To prevent this
4040
// libc++ changes this call into
4141
// "xprime = forward_as_tuple(..., std::get<Idx>(std::move(x))..., ...)".
4242
// 'xprime' contains references to the values in 'x' instead of copying them.

libcxx/test/libcxx/utilities/meta/stress_tests/stress_test_variant_overloads_impl.sh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ using Overloads = Overload<Types...>;
9999
namespace variant_impl {
100100
template <class ...Types>
101101
using Overloads = std::__variant_detail::_MakeOverloads<Types...>;
102-
} // naamespace variant_impl
102+
} // namespace variant_impl
103103

104104
#ifndef TEST_NS
105105
#error TEST_NS must be defined

libcxx/test/libcxx/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/construct_piecewise_pair.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// void polymorphic_allocator<T>::construct(pair<T1, T2>*, piecewise_construct_t
2222
// tuple<Args1...> x, tuple<Args2...>)
2323

24-
// The stardard specifiers a tranformation to uses-allocator construction as
24+
// The standard specifies a transformation to uses-allocator construction as
2525
// follows:
2626
// - If uses_allocator_v<T1,memory_resource*> is false and
2727
// is_constructible_v<T,Args1...> is true, then xprime is x.
@@ -36,7 +36,7 @@
3636
//
3737
// The use of "xprime = tuple_cat(..., std::move(x), ...)" causes all of the
3838
// objects in 'x' to be copied into 'xprime'. If 'x' contains any types which
39-
// are stored by value this causes an unessary copy to occur. To prevent this
39+
// are stored by value this causes an unnecessary copy to occur. To prevent this
4040
// libc++ changes this call into
4141
// "xprime = forward_as_tuple(..., std::get<Idx>(std::move(x))..., ...)".
4242
// 'xprime' contains references to the values in 'x' instead of copying them.

libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/ranges.remove.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static_assert(!HasRemoveIt<PermutableNotForwardIterator>);
3535
static_assert(!HasRemoveIt<PermutableNotSwappable>);
3636
static_assert(!HasRemoveIt<int*, SentinelForNotSemiregular>);
3737
static_assert(!HasRemoveIt<int*, SentinelForNotWeaklyEqualityComparableWith>);
38-
static_assert(!HasRemoveIt<int**>); // not indirect_binary_prediacte
38+
static_assert(!HasRemoveIt<int**>); // not indirect_binary_predicate
3939

4040
template <class Range>
4141
concept HasRemoveR = requires(Range range) { std::ranges::remove(range, 0); };
@@ -45,7 +45,7 @@ static_assert(!HasRemoveR<PermutableRangeNotForwardIterator>);
4545
static_assert(!HasRemoveR<PermutableRangeNotSwappable>);
4646
static_assert(!HasRemoveR<SentinelForNotSemiregular>);
4747
static_assert(!HasRemoveR<SentinelForNotWeaklyEqualityComparableWith>);
48-
static_assert(!HasRemoveR<UncheckedRange<int**>>); // not indirect_binary_prediacte
48+
static_assert(!HasRemoveR<UncheckedRange<int**>>); // not indirect_binary_predicate
4949

5050
template <int N, int M>
5151
struct Data {

libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.binary.iterator.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// ranges::transform(I1 first1, S1 last1, I2 first2, S2 last2, O result,
2020
// F binary_op, Proj1 proj1 = {}, Proj2 proj2 = {});
2121

22-
// The range overloads are tested in ranges.tranform.binary.range.pass.cpp.
22+
// The range overloads are tested in ranges.transform.binary.range.pass.cpp.
2323

2424
#include <algorithm>
2525
#include <array>

libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.binary.range.pass.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// ranges::transform(R1&& r1, R2&& r2, O result,
1919
// F binary_op, Proj1 proj1 = {}, Proj2 proj2 = {});
2020

21-
// The iterator overloads are tested in ranges.tranform.binary.iterator.pass.cpp.
21+
// The iterator overloads are tested in ranges.transform.binary.iterator.pass.cpp.
2222

2323
#include <algorithm>
2424
#include <array>
@@ -34,15 +34,15 @@ struct BinaryFunc {
3434
};
3535

3636
template <class Range>
37-
concept HasTranformR = requires(Range r, int* out) { std::ranges::transform(r, r, out, BinaryFunc{}); };
38-
39-
static_assert(HasTranformR<std::array<int, 1>>);
40-
static_assert(!HasTranformR<int>);
41-
static_assert(!HasTranformR<InputRangeNotDerivedFrom>);
42-
static_assert(!HasTranformR<InputRangeNotIndirectlyReadable>);
43-
static_assert(!HasTranformR<InputRangeNotInputOrOutputIterator>);
44-
static_assert(!HasTranformR<InputRangeNotSentinelSemiregular>);
45-
static_assert(!HasTranformR<InputRangeNotSentinelEqualityComparableWith>);
37+
concept HasTransformR = requires(Range r, int* out) { std::ranges::transform(r, r, out, BinaryFunc{}); };
38+
39+
static_assert(HasTransformR<std::array<int, 1>>);
40+
static_assert(!HasTransformR<int>);
41+
static_assert(!HasTransformR<InputRangeNotDerivedFrom>);
42+
static_assert(!HasTransformR<InputRangeNotIndirectlyReadable>);
43+
static_assert(!HasTransformR<InputRangeNotInputOrOutputIterator>);
44+
static_assert(!HasTransformR<InputRangeNotSentinelSemiregular>);
45+
static_assert(!HasTransformR<InputRangeNotSentinelEqualityComparableWith>);
4646

4747
template <class It>
4848
concept HasTransformOut = requires(int* it, int* sent, It out, std::array<int, 2> range) {

libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.unary.pass.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
#include "almost_satisfies_types.h"
3232

3333
template <class Range>
34-
concept HasTranformR = requires(Range r, int* out) { std::ranges::transform(r, out, std::identity{}); };
35-
36-
static_assert(HasTranformR<std::array<int, 1>>);
37-
static_assert(!HasTranformR<int>);
38-
static_assert(!HasTranformR<InputRangeNotDerivedFrom>);
39-
static_assert(!HasTranformR<InputRangeNotIndirectlyReadable>);
40-
static_assert(!HasTranformR<InputRangeNotInputOrOutputIterator>);
41-
static_assert(!HasTranformR<InputRangeNotSentinelSemiregular>);
42-
static_assert(!HasTranformR<InputRangeNotSentinelEqualityComparableWith>);
34+
concept HasTransformR = requires(Range r, int* out) { std::ranges::transform(r, out, std::identity{}); };
35+
36+
static_assert(HasTransformR<std::array<int, 1>>);
37+
static_assert(!HasTransformR<int>);
38+
static_assert(!HasTransformR<InputRangeNotDerivedFrom>);
39+
static_assert(!HasTransformR<InputRangeNotIndirectlyReadable>);
40+
static_assert(!HasTransformR<InputRangeNotInputOrOutputIterator>);
41+
static_assert(!HasTransformR<InputRangeNotSentinelSemiregular>);
42+
static_assert(!HasTransformR<InputRangeNotSentinelEqualityComparableWith>);
4343

4444
template <class It, class Sent = It>
4545
concept HasTransformIt =

libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// constexpr bool // constexpr after c++17
1919
// equal(Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2);
2020

21-
// We test the cartesian product, so we somethimes compare differently signed types
21+
// We test the cartesian product, so we sometimes compare differently signed types
2222
// ADDITIONAL_COMPILE_FLAGS: -Wno-sign-compare
2323

2424
#include <algorithm>

libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/ranges.for_each_n.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ constexpr void test_iterator() {
5757
assert(i == 4);
5858
}
5959

60-
{ // check that an emptry range works
60+
{ // check that an empty range works
6161
int a[] = {};
6262
std::ranges::for_each_n(Iter(a), 0, [](auto&) { assert(false); });
6363
}

libcxx/test/std/algorithms/alg.sorting/alg.partitions/ranges.is_partitioned.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ constexpr void test_iterators() {
8787
}
8888
}
8989

90-
{ // check that it's partitoned if the predicate is true for all elements
90+
{ // check that it's partitioned if the predicate is true for all elements
9191
{
9292
int a[] = {1, 2, 3, 4};
9393
auto ret = std::ranges::is_partitioned(Iter(a), Sent(Iter(a + 4)), [](int) { return true; });

libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/sort.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ test_pointer_sort()
190190

191191
// test_adversarial_quicksort generates a vector with values arranged in such a
192192
// way that they would invoke O(N^2) behavior on any quick sort implementation
193-
// that satisifies certain conditions. Details are available in the following
193+
// that satisfies certain conditions. Details are available in the following
194194
// paper:
195195
// "A Killer Adversary for Quicksort", M. D. McIlroy, Software-Practice &
196196
// Experience Volume 29 Issue 4 April 10, 1999 pp 341-344.

libcxx/test/std/concepts/concepts.object/semiregular.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static_assert(!std::semiregular<has_rvalue_reference_member>);
107107
static_assert(!std::semiregular<has_function_ref_member>);
108108
static_assert(!std::semiregular<deleted_assignment_from_const_rvalue>);
109109

110-
// Not default_initialzable
110+
// Not default_initializable
111111
static_assert(!std::semiregular<std::runtime_error>);
112112
static_assert(
113113
!std::semiregular<std::tuple<std::runtime_error, std::overflow_error> >);

libcxx/test/std/containers/sequences/deque/deque.modifiers/push_back_exception_safety.pass.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <cassert>
1818

1919
// Flag that makes the copy constructor for CMyClass throw an exception
20-
static bool gCopyConstructorShouldThow = false;
20+
static bool gCopyConstructorShouldThrow = false;
2121

2222
class CMyClass {
2323
public: CMyClass(int tag);
@@ -51,8 +51,8 @@ CMyClass::CMyClass(const CMyClass& iOther) :
5151
fMagicValue(kStartedConstructionMagicValue), fTag(iOther.fTag)
5252
{
5353
// If requested, throw an exception _before_ setting fMagicValue to kFinishedConstructionMagicValue
54-
if (gCopyConstructorShouldThow) {
55-
throw std::exception();
54+
if (gCopyConstructorShouldThrow) {
55+
throw std::exception();
5656
}
5757
// Signal that the constructor has finished running
5858
fMagicValue = kFinishedConstructionMagicValue;
@@ -74,14 +74,14 @@ int main(int, char**)
7474
vec.push_back(instance);
7575
std::deque<CMyClass> vec2(vec);
7676

77-
gCopyConstructorShouldThow = true;
77+
gCopyConstructorShouldThrow = true;
7878
try {
7979
vec.push_back(instance);
8080
assert(false);
8181
}
8282
catch (...) {
83-
gCopyConstructorShouldThow = false;
84-
assert(vec==vec2);
83+
gCopyConstructorShouldThrow = false;
84+
assert(vec == vec2);
8585
}
8686
}
8787

libcxx/test/std/containers/sequences/deque/deque.modifiers/push_front_exception_safety.pass.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#include "test_allocator.h"
1818

1919
// Flag that makes the copy constructor for CMyClass throw an exception
20-
static bool gCopyConstructorShouldThow = false;
21-
20+
static bool gCopyConstructorShouldThrow = false;
2221

2322
class CMyClass {
2423
public: CMyClass(int tag);
@@ -51,8 +50,8 @@ CMyClass::CMyClass(const CMyClass& iOther) :
5150
fMagicValue(kStartedConstructionMagicValue), fTag(iOther.fTag)
5251
{
5352
// If requested, throw an exception _before_ setting fMagicValue to kFinishedConstructionMagicValue
54-
if (gCopyConstructorShouldThow) {
55-
throw std::exception();
53+
if (gCopyConstructorShouldThrow) {
54+
throw std::exception();
5655
}
5756
// Signal that the constructor has finished running
5857
fMagicValue = kFinishedConstructionMagicValue;
@@ -74,14 +73,14 @@ int main(int, char**)
7473
vec.push_front(instance);
7574
std::deque<CMyClass> vec2(vec);
7675

77-
gCopyConstructorShouldThow = true;
76+
gCopyConstructorShouldThrow = true;
7877
try {
7978
vec.push_front(instance);
8079
assert(false);
8180
}
8281
catch (...) {
83-
gCopyConstructorShouldThow = false;
84-
assert(vec==vec2);
82+
gCopyConstructorShouldThrow = false;
83+
assert(vec == vec2);
8584
}
8685
}
8786

libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/push_front_exception_safety.pass.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
#include "test_macros.h"
1919

2020
// Flag that makes the copy constructor for CMyClass throw an exception
21-
static bool gCopyConstructorShouldThow = false;
22-
21+
static bool gCopyConstructorShouldThrow = false;
2322

2423
class CMyClass {
2524
public: CMyClass();
@@ -48,8 +47,8 @@ CMyClass::CMyClass(const CMyClass& /*iOther*/) :
4847
fMagicValue(kStartedConstructionMagicValue)
4948
{
5049
// If requested, throw an exception _before_ setting fMagicValue to kFinishedConstructionMagicValue
51-
if (gCopyConstructorShouldThow) {
52-
throw std::exception();
50+
if (gCopyConstructorShouldThrow) {
51+
throw std::exception();
5352
}
5453
// Signal that the constructor has finished running
5554
fMagicValue = kFinishedConstructionMagicValue;
@@ -67,7 +66,7 @@ int main(int, char**)
6766

6867
vec.push_front(instance);
6968

70-
gCopyConstructorShouldThow = true;
69+
gCopyConstructorShouldThrow = true;
7170
try {
7271
vec.push_front(instance);
7372
}

libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/remove_if.pass.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ bool g(int i)
4242
}
4343

4444
struct PredLWG526 {
45-
PredLWG526 (int i) : i_(i) {};
46-
~PredLWG526() { i_ = -32767; }
47-
bool operator() (const PredLWG526 &p) const { return p.i_ == i_; }
45+
PredLWG526(int i) : i_(i) {}
46+
~PredLWG526() { i_ = -32767; }
47+
bool operator()(const PredLWG526& p) const { return p.i_ == i_; }
4848

49-
bool operator==(int i) const { return i == i_;}
50-
int i_;
49+
bool operator==(int i) const { return i == i_; }
50+
int i_;
5151
};
5252

5353
int main(int, char**)

libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/unique_pred.pass.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ void do_unique(L &l, Predicate pred, typename L::size_type expected)
3535

3636

3737
struct PredLWG526 {
38-
PredLWG526 (int i) : i_(i) {};
39-
~PredLWG526() { i_ = -32767; }
40-
bool operator() (const PredLWG526 &lhs, const PredLWG526 &rhs) const { return lhs.i_ == rhs.i_; }
38+
PredLWG526(int i) : i_(i) {}
39+
~PredLWG526() { i_ = -32767; }
40+
bool operator()(const PredLWG526& lhs, const PredLWG526& rhs) const { return lhs.i_ == rhs.i_; }
4141

42-
bool operator==(int i) const { return i == i_;}
43-
int i_;
42+
bool operator==(int i) const { return i == i_; }
43+
int i_;
4444
};
4545

4646

0 commit comments

Comments
 (0)