<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/121675>121675</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] simple-constraints not formatted as expressions
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rymiel
</td>
</tr>
</table>
<pre>
Related to https://github.com/llvm/llvm-project/issues/121471.
Input and expected result:
```c++
template <typename T>
concept Multiplicable = requires(T a, T b) { a * b; };
```
Actual result:
```c++
template <typename T>
concept Multiplicable = requires(T a, T b) { a *b; };
```
Note that a *[simple-expression](http://eel.is/c++draft/expr.prim.req.simple#nt:simple-requirement)* is just an *expression*. Clang-format should be treating the contents of a *[requirement-body](http://eel.is/c++draft/expr.prim.req.general#nt:requirement-body)* as an expression context but it is not doing so.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzElEGPmzAQhX_NcBkFGRNDcuBANo3UQ3uo9g8YmASvjM3aw2r331cO2d1UlXpoD5UscbHffM_PDx2juTiiBtQB1DHTC48-NOFtMmSzzg9vzQ-ymmlA9jgyzxHKFuQJ5OlieFy6vPcTyJO1L--fzRz8E_UM8mRiXCiCPBWy2NZFDqIF0X5188Ko3YD0OlOfxAPFxXKSFi1UYl09yENaomWa5kSBUD7w20xOT4SPUH4B0fbe9TQzflssm9maXnc2bTxioOfFhDR_94ga5AM-Ygdyj1AfUCPIFjsoDwj1EcrD_eSVs-150fZ_sf0R7btnQh41r3tBHaKZZksbep0DxWi8A3UEuUuRfSRGZHOT4rjRD0GfU0zpUD4HM-WBnvNVCWTpkumb7o13Iscg9-nqTMSnJaYcE8HdXNnm-GC1u2zOPkyaMY5-sQN2hBxIs3EX5JGw947JcUR__nBxN2aTXt9fm7iQo6Dtu4vfdFcPOib8T_aV6ZWxWxgNJ4_OMw4-MUefZ0NTDvtyrzNqirqsxLaQoszGpu9EeuC7s6pUv6tVXe1Jd7Tdq0HU21pnppFCKlEIJYqtEGW-H6pqp3Sxq3ZdLYSCraBJG5unCuU-XLJreZpCFlWtMqs7svFaUyn7u9sFKVNxQ3OtXrdcImyFNZHjpxIbtteK_3JQHfEWbu9d5KBNCiP5XTekXup4dzsxW4Jt_uknkKy8NPJnAAAA__81XGhS">