<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54140>54140</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Formatter] Recognize `if consteval`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JohelEGP
</td>
</tr>
</table>
<pre>
No `.clang-format`.
Input and expected formatted result (because replacing `consteval` with `(true)` looks just like that):
```C++
void f() {
if consteval {
ok;
}
}
```
Actual output:
```C++
void f() {
if
consteval { ok; }
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUclu4zAM_Rr5ItRQ5C0-6JA2bTFzKIr-gSzTthrFMrRklq8v5SztXOZQgID4Him-J6qz_R_xYimpWa6MnMe7wbqjDAkTtids92NeYqBy7in8XkAF6Om5JWUOfDSBEr7tQMnoAZnFSKXnMY1UdvYBTtJgTn_pMCUSm4OLQHibWGPtwdP36AM1-gA0TCiOpWJ3lk8X1ngg_D7Fyp6sRhs4CVspaS4spXqgN82vPKX2QIobJM3-Mv2WXGXOcKdCxAk2Bnz8t718qv9j6uzlfyayXhR9W7QyCzoYEKS6f7rs3JFqT99A2XHWfyHt8-ub093ojJhCWHzyzZ8wRtx87HJljwiMOV2Pu8XZd_xShNr7CB6TqtyULJsEV82mLAfG6n6ooB7qYcvrrpFdwfBf-zYzsgPjkzV0lGnBGeesYJyxsi6rvAHFtm29LTeFbDdSkpLBUWqTJ-HcujFzYvXQxdFj0Wgf_GdReq_HGeA6X8YwWSd-2gnM4_NrtvoVq9kPXTTM6w">