Skip to content

Commit 17b23ac

Browse files
committed
Undo formatting changes
1 parent e8a1c2c commit 17b23ac

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

libcxx/test/std/containers/sequences/vector/vector.data/data_const.pass.cpp

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -18,72 +18,72 @@
1818
#include "asan_testing.h"
1919

2020
struct Nasty {
21-
TEST_CONSTEXPR Nasty() : i_(0) {}
22-
TEST_CONSTEXPR Nasty(int i) : i_(i) {}
23-
TEST_CONSTEXPR_CXX20 ~Nasty() {}
21+
TEST_CONSTEXPR Nasty() : i_(0) {}
22+
TEST_CONSTEXPR Nasty(int i) : i_(i) {}
23+
TEST_CONSTEXPR_CXX20 ~Nasty() {}
2424

25-
Nasty * operator&() const { assert(false); return nullptr; }
26-
int i_;
25+
Nasty * operator&() const { assert(false); return nullptr; }
26+
int i_;
2727
};
2828

2929
TEST_CONSTEXPR_CXX20 bool tests()
3030
{
31-
{
32-
const std::vector<int> v;
33-
assert(v.data() == 0);
34-
assert(is_contiguous_container_asan_correct(v));
35-
}
36-
{
37-
const std::vector<int> v(100);
38-
assert(v.data() == std::addressof(v.front()));
39-
assert(is_contiguous_container_asan_correct(v));
40-
}
41-
{
42-
const std::vector<Nasty> v(100);
43-
assert(v.data() == std::addressof(v.front()));
44-
assert(is_contiguous_container_asan_correct(v));
45-
}
31+
{
32+
const std::vector<int> v;
33+
assert(v.data() == 0);
34+
assert(is_contiguous_container_asan_correct(v));
35+
}
36+
{
37+
const std::vector<int> v(100);
38+
assert(v.data() == std::addressof(v.front()));
39+
assert(is_contiguous_container_asan_correct(v));
40+
}
41+
{
42+
const std::vector<Nasty> v(100);
43+
assert(v.data() == std::addressof(v.front()));
44+
assert(is_contiguous_container_asan_correct(v));
45+
}
4646
#if TEST_STD_VER >= 11
47-
{
48-
const std::vector<int, min_allocator<int>> v;
49-
assert(v.data() == 0);
50-
assert(is_contiguous_container_asan_correct(v));
51-
}
52-
{
53-
const std::vector<int, min_allocator<int>> v(100);
54-
assert(v.data() == &v.front());
55-
assert(is_contiguous_container_asan_correct(v));
56-
}
57-
{
58-
const std::vector<Nasty, min_allocator<Nasty>> v(100);
59-
assert(v.data() == std::addressof(v.front()));
60-
assert(is_contiguous_container_asan_correct(v));
61-
}
62-
{
63-
const std::vector<int, safe_allocator<int>> v;
64-
assert(v.data() == 0);
65-
assert(is_contiguous_container_asan_correct(v));
66-
}
67-
{
68-
const std::vector<int, safe_allocator<int>> v(100);
69-
assert(v.data() == &v.front());
70-
assert(is_contiguous_container_asan_correct(v));
71-
}
72-
{
73-
const std::vector<Nasty, safe_allocator<Nasty>> v(100);
74-
assert(v.data() == std::addressof(v.front()));
75-
assert(is_contiguous_container_asan_correct(v));
76-
}
47+
{
48+
const std::vector<int, min_allocator<int>> v;
49+
assert(v.data() == 0);
50+
assert(is_contiguous_container_asan_correct(v));
51+
}
52+
{
53+
const std::vector<int, min_allocator<int>> v(100);
54+
assert(v.data() == &v.front());
55+
assert(is_contiguous_container_asan_correct(v));
56+
}
57+
{
58+
const std::vector<Nasty, min_allocator<Nasty>> v(100);
59+
assert(v.data() == std::addressof(v.front()));
60+
assert(is_contiguous_container_asan_correct(v));
61+
}
62+
{
63+
const std::vector<int, safe_allocator<int>> v;
64+
assert(v.data() == 0);
65+
assert(is_contiguous_container_asan_correct(v));
66+
}
67+
{
68+
const std::vector<int, safe_allocator<int>> v(100);
69+
assert(v.data() == &v.front());
70+
assert(is_contiguous_container_asan_correct(v));
71+
}
72+
{
73+
const std::vector<Nasty, safe_allocator<Nasty>> v(100);
74+
assert(v.data() == std::addressof(v.front()));
75+
assert(is_contiguous_container_asan_correct(v));
76+
}
7777
#endif
7878

79-
return true;
79+
return true;
8080
}
8181

8282
int main(int, char**)
8383
{
84-
tests();
84+
tests();
8585
#if TEST_STD_VER > 17
86-
static_assert(tests());
86+
static_assert(tests());
8787
#endif
88-
return 0;
88+
return 0;
8989
}

0 commit comments

Comments
 (0)