Skip to content

Commit b1d229a

Browse files
committed
Fix lint issues
1 parent 53146d8 commit b1d229a

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

bolt/unittests/Core/ClusteredRows.cpp

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ TEST_F(ClusteredRowsTest, CreateSingleElement) {
3131
EXPECT_EQ(CR->size(), 1u);
3232

3333
// Test population with single element
34-
std::vector<DebugLineTableRowRef> TestRefs = {
35-
{42, 100}
36-
};
34+
std::vector<DebugLineTableRowRef> TestRefs = {{42, 100}};
3735
CR->populate(TestRefs);
3836

3937
ArrayRef<DebugLineTableRowRef> Rows = CR->getRows();
@@ -48,11 +46,7 @@ TEST_F(ClusteredRowsTest, CreateMultipleElements) {
4846
EXPECT_EQ(CR->size(), 3u);
4947

5048
// Test population with multiple elements
51-
std::vector<DebugLineTableRowRef> TestRefs = {
52-
{10, 20},
53-
{30, 40},
54-
{50, 60}
55-
};
49+
std::vector<DebugLineTableRowRef> TestRefs = {{10, 20}, {30, 40}, {50, 60}};
5650
CR->populate(TestRefs);
5751

5852
ArrayRef<DebugLineTableRowRef> Rows = CR->getRows();
@@ -87,12 +81,7 @@ TEST_F(ClusteredRowsTest, PopulateWithArrayRef) {
8781
ASSERT_NE(CR, nullptr);
8882

8983
// Test population with ArrayRef
90-
DebugLineTableRowRef TestArray[] = {
91-
{1, 2},
92-
{3, 4},
93-
{5, 6},
94-
{7, 8}
95-
};
84+
DebugLineTableRowRef TestArray[] = {{1, 2}, {3, 4}, {5, 6}, {7, 8}};
9685
ArrayRef<DebugLineTableRowRef> TestRefs(TestArray, 4);
9786
CR->populate(TestRefs);
9887

0 commit comments

Comments
 (0)