<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57800>57800</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format - how to get C99 init in specific format
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MaJerle
</td>
</tr>
</table>
<pre>
Is there a good way to get this formatting below?
```c
const lwbg95_conn_connect_t connection_info_ssl = {
.type = LWBG95_CONN_TYPE_SSL,
.type_data = {
.ssl = {
.cipher_suite = LWBG95_SSL_CIPHER_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
.ca_cert_path = "clientcert.pem",
.client_key_path = "privatekey.pem",
.negotiate_time = 300,
.sslversion = LWBG95_SSL_VERSION_ALL,
.sec_level = 1,
.ignore_ltime = 0,
}
}
};
```
Rather than currently:
```c
const lwbg95_conn_connect_t connection_info_ssl = {
.type = LWBG95_CONN_TYPE_SSL,
.type_data = {.ssl =
{
.cipher_suite = LWBG95_SSL_CIPHER_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
.ca_cert_path = "clientcert.pem",
.client_key_path = "privatekey.pem",
.negotiate_time = 300,
.sslversion = LWBG95_SSL_VERSION_ALL,
.sec_level = 0,
.ignore_ltime = 0,
}}
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVVtvmzAU_jXwYjUyEEh44CG3NpnSi0K1ak-WMSfgzcEIm0T593OgaRqaVl2nSTuyjH3uPv6OSWS6jxYK6RwqQBRlUqZoR_dIS5SBNnyu0FpWG6o1LzKUgJA7y7u28NTCo-c5wO1g7Z7JQmkkdkkW-sRsimYCpolGzysuC8KLtSRKCWR5U2QNxq0xMtTT-xIa9vJpfGOcTO7v7sjjj4cZieOl5U46qiSlmr5108gvBniRMl6agxNVc30W0IQhk8XDfLYij8uYzCbT-Yys4hF5WjzOyWgWE8cdkpvJLYnnI9cPznI6eaeEQaVJSXXeJuG6THAo9IHdK2FjGO-YNmrkF-zPrMuKb6kGw_7QuoBMam4Uieab9mAexpd1TYG2UClzI90CfJ-t4sX9HRktl--YAiMCttBW2LmsxLNCVkDESyZv87AG0xPjZXNYeOMOxF7jbkUPqDUQpQVidVWZgom95Y3-X2we0fi2TCe6CNRz-rew7cb6Moi7jv4G0h1ffwDwjuXX4d51dAb-T8X-RCuc06EFPmwHGyInCLy-53kDbKeRl4ZeSG3NtYCICVpkV-3jja5QLnfHV30ShogXXJsJqRIYX3P2_MrbdSWiXOtSHTrJvTYj4zqvkx6T5nauhdgeP1dlJX-ahjFbrlQNyiz8wRBjO48gdB3HSViyDvzQT4cDHPRxCoEbONTHQ7AFNb8SFVn-2PKnNo9c7Lo4dAZO0A893KPhcBiECU7WfeZA0rf6GDaUi94hcE9WmV1FTQ5JnSkjFFxpdRJSpUyxAY7-aa1zWUW39BtUAuwm3ajJ9TcmH-dO">