<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96664>96664</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format configure C99 struct initialization
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
BrianSipos
</td>
</tr>
</table>
<pre>
The use of C [struct initialization](https://en.cppreference.com/w/c/language/struct_initialization), specifically when using C99 designator syntax, seems to be not directly configurable with any clang-format options.
I have set what I was hoping to control initialization using `PackConstructorInitializers: Never` but see inconsistent formatting when using C struct initialization syntax. In most cases, where only a few fields are set, the initialization gets all packed onto a single line.
Is there a way to configure this specifically, or as a derived behavior similar to the C++ constructor configuration?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsk0FvqzgQxz-NuYwaEZOQcODQpELKZbXS7n01mAG8dWzkGcLL-_RPTlK1qXqBi_3zf34zg8x28ES12h7U9i3DWcYQ60O06P-xU-CsDd21_nckmJkg9HAEtT2wxNkIWG_ForO_UWzwavum9H4UmVgVr0o3SjfkV2aaIvUUyRtamXBWulmUbozSjUM_zDiQ0s2d-N83oq6UPgJPZGxvDTp3hWUkDzNbP8CxqqCjVABKiMBXL_jrdoHozCABWgIfBDobyYi7ggm-t8McsXUEi5UR0F_BpBwvfYhnFAhTeplXKn9T-ev9e4IRLwRMAsuIAidYkGEMU0ohIWElBvfNxyOlKvO_0bwfg7_XGOLp4xjFZAr-ogtFVebQzpKyg_UmeLYs5AXuuSShvtYOP_bgIWEFJw_nwAIGmTg5WUaKBMG7KyD0tEBvyXUMGG-FpSMy0nfcQMKAzsGE5p06CF4CIKQIjsBZT8-iOEEiAcKC14eam3ECGS0_tTI9GSIgA0JH0V6og5ZGvNjUTHu2DmNCpFhHpQ9KHxLuw-JnM2-jUjRZVxddVVSYUb3erauiKNa6zMYaabPbtoUx7b436x1W621LValb1GW3pyqztc71Ji_1dl0WOi9XRa7zYrer9praom17tcnpjNatnLucVyEOmWWeqa7KstxkDltyfFshrb8Ok9I6LVWs07WXdh5YbXJnWfgTJFYc1U8j-OksTfiPfc7m6OrnVRusjHP72LCEf_xephj-JyNKN7fQrHRzz32p9Z8AAAD__9k9YUo">