Closed
Description
Run clang-format on this code:
void test() {
for (const TestCase& test_case : {
TestCase{
.a = 1,
.b = "1",
},
TestCase{
.a = 2,
.b = "2",
},
}) {}
}
In the output, the field names for the second fields are misindented:
void test() {
for (const TestCase& test_case : {
TestCase{
.a = 1,
.b = "1",
},
TestCase{
.a = 2,
.b = "2",
},
}) {
}
}
I expect them to be at the same level of indent as the first field.