<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59600>59600</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Incorrect star/amp annotation in requires expression outside of requires clause
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
rymiel
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rymiel
</td>
</tr>
</table>
<pre>
Consider the following variable template:
```c++
template <typename T> bool canBar = requires(T && t) { t.bar(); };
```
Note the incorrect spacing of the &&, as it is annotated with `T=BinaryOperator`.
This issue doesn't exist for concept definitions:
```c++
template <typename T>
concept canBar = requires(T &&t) { t.bar(); };
```
Style: `{}` (empty)
Reproduced on main (6161a8dd5c5a1f190fd964576fb743620e972cc7) and 15.0.2
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU81unDAQfprhMgoyBgwcOJRsV-qlldp9AWMPu66MTW2TZN--gs0mbQ89tJIF0vzPN98nYzRnR9RDPQDn4TobssA51IdMruniQ3-zZaPX1_7Ru2g0BUwXwslb65-NO-OTDEaOljDRvFiZCMoPwA7A7l_Bbk8BH7a3W-_BCOVjui7k5Ex4gvIjjt5bVNINMiCUBwz0YzWBIvD2hMAFcIEJeIfQDJjyUQbgLfAOygGhOUA5_NH312E--0T7_MYpHwKphHGRatvDT7vj1gH4I8qIJqGJKJ3zSSbS-GzSBUGwE5SHwTgZrl8WCjL5AILltxani4loYlwJtafogDcJ6cXEhJMPqLxTtCTUNBlnkvEu_h9gN_e97N-B-2fcvqWr3Q67LQ_NsMULhsBbmpd03arsYV9pCV6vijR6h7M0bosRhShkq3WtallMRccm3YmqbsQ0NlUpOKOu4Uo123DSaSzqnOU8032pu7KTGfWFaIqqEaLrsks_TnrUddc2mtcjCT3pstYVkVKTaMdyzEzPGecFL7qiY1Xd5eNYtU0rJqoLxitZQcVolsbm1j7NuQ_nbL9XX3eCsczKkWx8FYWy0p0fJh9mmV6lEfot7WFczxEqZk1M8b1QMsnugvotsT7gp3fCpQ36o5yXO7OMd2jc28GQXpZAMW5mv6ZNdBs739zKyjVStgbbX1Jadv7wI_Dj2aTLOubKz8CP20ivv4cl-O-kEvDjvmgEftx3_RkAAP__-mM23w">