<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58669>58669</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Option to align "break" with "case" in switch case statements.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cushsean
</td>
</tr>
</table>
<pre>
Desired format:
```
switch (value)
{
case label:
...
break;
}
```
Current closest format option:
```
switch (value)
{
case label:
...
break;
}
```
The desired format would adhere to Barr-C rule 8.3.a. Don't judge me, it's what I have to use.
> 8.3.a. The break for each case shall be indented to align with the associated case, rather than with the contents of the case code block.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9Uk2P2yAQ_TX2ZRRkg-PYBx82SVfqqZf-AQwTm11iIj4S9d93_JHdrdRLL0XIHhjmvTcPeqd_dWcMxqOGi_NXGTPxkhXnrHjJ6mKbyzI8TFQjZLy5S5sw4-127HBcA6ChZECwskf7AQPbYIx9bvQe5Xsmjk-I818p1-8peY9TBGVdwBA3meBu0bjpv6j9V8U_RwT9h6nwcMlqkHpEjxAdHKX3uxP4ZBEaJphkcKZu-CHCW9IDwpU0n8BE2grwGAniO4zyvhSngOwrXya-PUFm6kXqTAwoyYOlyzBKa6FHMJMmM0kY4UhrhgnIqREi1ckQnDJyTs41M7-XlPCUlV_OKUcAUwzgLut6JlBOE7N16p3l2JV1Xbd1JQ5lrjuhW9HKPJposcv2R2XlNOy217Y_w4_lJj8FZZyvbnO-klKwCuIkH7arXduKJPc6i2F58rYbY7yF-TL5K82BilPPlLvSwtr787e7efeGirx9NSEkDBTsG1Kcj13Z632lJVdYtBe8FG3bHKq-umDRVG3V9PnyXsLcB-mZ8AELBMXUSm46XnBeFrwphWhFyXTbCixFXTd904tDkVUFXqWxbNbBnB9y3y2S-jQESloTqJePJF0JOYKLbTO-THF0vlMpjAHllC_c3aL9N3YYIbo">