<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63891>63891</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format don't report error but not format some files when set `Cpp11BracedListStyle: false`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
yyjdelete
</td>
</tr>
</table>
<pre>
tested with clang-format 16.0.6(latest stable), and 16.0.0 (https://github.com/llvm/llvm-project 08d094a0e457360ad8b94b017d2dc277e697ca76) which in bundled in vscode
No warn or error is reported by clang-format, but the struct init will not be formated
Set ColumnLimit to 0 like `BasedOnStyle: WebKit` does also works, but didn't found any thing about this in doc
### c file
```c
typedef struct
{
int f1;
int f2;
int f3;
} _s2;
typedef struct
{
int f1;
_s2 f2;
} _s1;
_s1 s1 = {
.f1 = 1,
.f2 = {
.f1 = 2,
.f2 = 2, //it should be format
},
};
```
### .clang-format config
```
---
BasedOnStyle: Microsoft
Language: Cpp
#ColumnLimit: 120
Cpp11BracedListStyle: false
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVMGOozgQ_RpzKSUyhkB84NCdqC_bu3uYwx5bNi7AM46N7GKi_P2KQDrdmdZKOxFKSpXnV_VMvVIp2d4jNmz3zHbHTE00hNhcLt8NOiTMdDCXhjARGjhbGqB1yvebLsSTIsirLd9WTOydmjGQSGmHTEgmDqC8WQAcmNgPRGNixRMTL0y89JaGSW_bcGLixbmft5_NGMN3bAn43nBZKo7lri4qrsxey1LzvDbCtKKusZJ1q-qKCQnnwbYDWA968sahmcOfqQ0GGT8y_vRXgLOKHkIEjDFEsAkijiHOovTlk6S5cT0R0ICQKE4tgfWW4GydAx8INMKCRLOwf0OCQ3DTyb_akyWgAByc_YHAKv6sEpq__Te6OGTFE_yD-g9LrOJgAiZQLgU4h_gj3eoaazwTNUEXJm9A-QvQYH0PSodrWzbN8kxol-rrtyiWB1rorFt1s4ovz4qly4gGu1XXiqmflwAAwHqCLmfFY0r8mireU6w-wlu6Q36_1lsSH2stxPkD8VvKIeXAiiN84tt2SzJn4vAxK36FfoSLO_yGnVNw_ywDawnSECZn7gOwHmP18Z1jjt_bvd3-1y9q-8lIbfCd7b88uNlsluBxlv60bQwpdGsjr8r3k-qvfx3G8aHqhwmdAblY2Q_jmOfPUbVoXm2id_JOufQ4RplpCiMLqTJs8movS1lKWWRD05YaBceqLXNU0uw6LVXVVdJ0BnNtdGYbwUXB67ziey53xRZVuas410IWmgu1ZyXHk7JuOy-BbYh9ZlOasKmKvcwzpzS6dNtRsbluCj31iZXc2UTpfowsOWw-3a0Ji6MWy68rYPbabOcVk8IJr85JcB7QQ0Ka7fvft1PxbIqu-X-bbZ6lWVpi4uWq7t8AAAD__-uEnKg">