Skip to content

Commit 6926cfb

Browse files
Reverting formatting changes that are not required for my code.
1 parent 6205ff8 commit 6926cfb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/unittests/ADT/BitVectorTest.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,17 +1192,17 @@ TYPED_TEST(BitVectorTest, BidirectionalIterator) {
11921192
--LastIt;
11931193
EXPECT_EQ(*LastIt, 40U);
11941194

1195-
// Test post-decrement
1195+
// Test post-decrement.
11961196
auto It = Vec.set_bits_end();
11971197
auto PrevIt = It--;
11981198
EXPECT_EQ(PrevIt, Vec.set_bits_end());
11991199
EXPECT_EQ(*It, 40U);
12001200

1201-
// Test pre-decrement
1201+
// Test pre-decrement.
12021202
--It;
12031203
EXPECT_EQ(*It, 30U);
12041204

1205-
// Test full backward iteration
1205+
// Test full backward iteration.
12061206
std::vector<unsigned> BackwardBits;
12071207
for (auto RIt = Vec.set_bits_end(); RIt != Vec.set_bits_begin(); ) {
12081208
--RIt;
@@ -1216,7 +1216,7 @@ TYPED_TEST(BitVectorTest, BidirectionalIterator) {
12161216
}
12171217

12181218
TYPED_TEST(BitVectorTest, ReverseIteration) {
1219-
// Test using llvm::reverse
1219+
// Test using llvm::reverse.
12201220
TypeParam Vec(100, false);
12211221
Vec.set(5);
12221222
Vec.set(15);
@@ -1238,27 +1238,27 @@ TYPED_TEST(BitVectorTest, ReverseIteration) {
12381238
}
12391239

12401240
TYPED_TEST(BitVectorTest, BidirectionalIteratorEdgeCases) {
1241-
// Test empty BitVector
1241+
// Test empty BitVector.
12421242
TypeParam Empty;
12431243
EXPECT_EQ(Empty.set_bits_begin(), Empty.set_bits_end());
12441244

1245-
// Decrementing end() on empty should give -1 (no bits set)
1245+
// Decrementing end() on empty should give -1 (no bits set).
12461246
auto EmptyEndIt = Empty.set_bits_end();
12471247
--EmptyEndIt;
1248-
// After decrement on empty, iterator should still be at "no bit" position
1248+
// After decrement on empty, iterator should still be at "no bit" position.
12491249
EXPECT_EQ(*EmptyEndIt, static_cast<unsigned>(-1));
12501250

1251-
// Test single bit
1251+
// Test single bit.
12521252
TypeParam Single(10, false);
12531253
Single.set(5);
12541254

12551255
auto SingleIt = Single.set_bits_end();
12561256
--SingleIt;
12571257
EXPECT_EQ(*SingleIt, 5U);
12581258
// After decrementing past the first element, the iterator is in an
1259-
// undefined state (before begin), so we don't test this case
1259+
// undefined state (before begin), so we don't test this case.
12601260

1261-
// Test all bits set
1261+
// Test all bits set.
12621262
TypeParam AllSet(10, true);
12631263
std::vector<unsigned> AllBitsReverse;
12641264
for (unsigned Bit : llvm::reverse(AllSet.set_bits())) {

0 commit comments

Comments
 (0)