<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJzVU01vozAQ_TXmMgoyhvBx8KFtVKnX_QMrGybgrcERNq3673dMwybdRr1sLyuN8PjN8Obp2daue5M_1CuY6bQExg-M37GSv8cDE_cxVvTFmQ4UEzUTDcuvQX0LPBJopgCGiQfQzlnA6Sd1NsCqcx-AfzWhHSC2_lVplUfgLL_bAPg0O2J6RvV8hbD9PYU1z2jf2P5A8c6UfWAyxzjyhp6V8sYYVh2-mLkVL8lm4Hm7flurpn53dPOowi7LwS0hOr7p-o9N_8J2ILLPdl-J_xZrnwJ4xNFDVABhQKCGKIAW8EEFHDG64mFyAWbs3WRa7ICMGEBNoEKYjV4Cpkkn867JG5WoJQxulh32yi8-WWYrhxBOProjHil6-nnRaetG2lj7si270-x-YRtoa7xf0FOyz7OMJ4MsRdm2x5pXXVWIfV7U2Gium0w32NSF6hKrNFovo59CTEjPMlJQTpYm_67ASMGF4JRmIs8ET0tR8bKpK16rIivzihUcR2VsGnlSN_fJLFdKvfSeitb44C9F5b3pJ8RVMCkMJliU1zcdOocfbb-47dcDMNP5RpLK9dL8OTCfrPLlqv03vtBKzQ>53110</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format does not regonice attributes within 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>
degasus
</td>
</tr>
</table>
<pre>
Raw input
```C++
void a();
void b();
void f(int i, bool en_b) {
switch (i) {
case 0:
a();
break;
[[likely]] case 1:
if (en_b) {
b();
}
break;
}
}
```
clang-format-13 output:
```C++
void a();
void b();
void f(int i, bool en_b) {
switch (i) {
case 0:
a();
break;
[[likely]] case 1 : if (en_b) { b(); }
break;
}
}
```
It seems like the `case` statement is not regoniced with an attribute.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVU8tu5CAQ_Bp8aY2FYfw6cEgyirTX_MAKTI_NBpuRwYny9wFnvDPZjHLaS6SWDdVNVbmQldNv4km-gplOSyD0QOgdqehHPRB2n2pFX5zRIAlrCGsJvwbVLfAYQTMFMIQ9gHLOAk6_42QLpD7PAfhXE7oB0ug_nU56BEr43QbAF-2EqRnl8xVCyvtY1jyjfSPlIdYHU_GJyRyT5A0_K-UNGVIfvtHcmpfFFuB5uz47K6d-d3TzKMOu4OCWkBLffP3g0L-JHSLZ17ivzP-XaH8F8Iijh-QAwoAQB5KB-AIfZMARUyoeJhdgxt5NpkMNMYgB5AQyhNmoJWCeacF1y1uZBRMsiutLA-3wM8PloF-5zHQOl7DH9fv_avtsma0YQjj5FC97jNXHE4vKOzfGjbUv22t3mt0f7ELcGu8X9HFR8qKg2SAoLWuGGvct6xp1ZJWiilOuq7rRSpZVZqVC60W6EMYmjP91oojreCeZEYwyRiNVwXjBaF6xmlZtU9NG7ouK12RPcZTG5slH7uY-m8VqSS29j01rfPCXpvTe9BPiKhf55RIGNwuNvfSLz1ZpsVp_ByC0NXs">