<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69051>69051</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang-format leaves an extra newline between member initializations in the constructor initialization list.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
with
```
class MyClass {
private:
int member1;
double member2;
public:
MyClass(int m1, double m2)
: member1(m1),
member2(m2) {}
};
```
By default, I think it should generate:
```
MyClass(int m1, double m2)
: member1(m1),
member2(m2) {}
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysks3uoyAUxZ8GN-TfyEWtLlz0I01mMQ8BeKvMIDRwbafz9BOt7TTdTTLESIDL75wDqJRs7xFbVu5ZeczUREOIbbq7KyaKmOnQ3dubpYHlR5bvWJWv3zI0TqXEv98PS8-2-8f0JdqrImRy9xhzbj3xEUeNUTC5f852YdIO1wV4LayQSTtr3hirDIN6oQkGhxcBGDTPurkxuXvpQT3XNgwO73i-tqc41AtkCbE9rpXb44epj_yP__7OOzyrydFs6Runwfqf3BJPQ5hcx3v0GN_P44Py_6L9c6inkaxrZdfIRmXYiqrZQl2U2yYb2qqRutFVoZRErAGkkQJLUXZaQSdUkdkWcpAiF4UQZSWajZFNaYzs6nPeKZkbVuQ4Kus2zl3HTYh9ZlOasK2avBSZUxpdWp4fgHHK91_nEEdFDGB-kLGdt33pqU-syJ1NlP6CyJLD9vC2iztUV0xceY6_KCru8easR66Rboh-PRluvSWrnP2tyAafuPWcBuQm-ERxMhQ-S_gsvcmm6NqB6JLmu4QTg1NvaZj0xoSRwWl2tnZflxh-oCEGpyVvYnBaIv8JAAD__9ovAVo">