<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69237>69237</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang-Format inserts extra indent for initializer lists with PP in the #else branch
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
petrhosek
</td>
</tr>
</table>
<pre>
For the following snippet:
```cpp
A a_ {
kFlag1,
#if BUILD_FLAG
kFlag2,
#else
kFlag3,
#endif
kFlag4
};
```
Clang-Format inserts an extra indent in the `#else` branch after #65409:
```cpp
A a_{kFlag1,
#if BUILD_FLAG
kFlag2,
#else
kFlag3,
#endif
kFlag4};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUstu2zAQ_BrqsrBBLfUwDzzYMVQUyCGXngNaWklsaFIg6abt1xd6NE2KALlEECDsamaxM7M6RjM4IsXKEyvPmb6l0Qc1UQqjj_SUXXz3SzU-QBoJem-tfzZugOjMNFFi4sj4mfEjq_j6ttO0do6gH4HVp7UCeGqsHnKGdxsBhenh9O3r_fmxuT9-2WALCl-jyEb6O2N-FoR4g3Cd6V_zi-1XfWbi9N9-a3lntRt2jQ9XncC4SCFF0A7oZwoajOvIzf1F9Eza1qg4XIJ27Qi6TxSAoajKgssPbGD16bPUfyD_BVG8Kz7rlOikkDojlVeyLg6C5yIbley4qGRPUmriea0PeVH2Oe94gVXXYpsZhRxFzvMql1wIsa860nVftyUWZXloiRWcrtrYvbU_rnsfhszEeCNVSRR1ZvWFbFyODLFdzO8X8xnifHZBzbTd5TZEVnBrYor_BiWTLKl3I3uTV-8DGGeS0db8pgDLGHg2aYSHh5c0V0-3HLNbsGpMaYpzhNgwbAaTxttl3_orw2beYfvspuC_U5sYNouyyLBZxP0JAAD__0yK8mw">