<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58923>58923</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Rvalue `&&` being treated as binary operator in sizeof and function decl.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          red1bluelost
      </td>
    </tr>
</table>

<pre>
    I ran into a formatting issue where && in rvalue reference types were being treated as a binary operator. This occurred inside function scopes when doing function declarations or using sizeof.

Example output that didn't format correctly when Reference alignment should have been left (using Google style):
```c++
int f4() { return sizeof(Foo &&); };
```
```c++
void f7() { int f8(Foo&&, Bar &&); };
```
```c++
void f2() { int f3(Foo &&); };
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU81u2zAMfhr5QtSw5cSxDz4syzrsWuwFJIu2NShSINHpsqcfbafd1gEDCgwg9ENS30dSpA7m1n2BqDxYTwEUDCGeFZH1I9iUZoTnCSOCkDULO0G8KsfqiAPrfY9AtwsmeF68NC7vKKIiNKAS42nrVbxBuGBUFGIOXyebIPT9HCP7WJ-sQRhm35MNHlIfVrQJPZiwoL2aDPZOMQifGSDCnBZzsj8wDLkoTqL4sK2fvqvzxSGEmS4zAU2KwFjjhTzQPT_oA9P35G4b1dNrNsrZ0Z_RE6QpzM7ApK5LYuzkcCAuRLMRfw5hZJJEN4dCtqK6s4u62KQX8rjIquXqwrDjx-wK4nDk-tEc_T181j-GcC_yCnZkpxNvbzD_RXEN1sBw-I1jJW028Bfsj3BU8b8wybdM1TvTyLAr67opy7aom8x0lWmrVmVkyWEn9kf-bj8-bB8m9id42jpveb8x1MXfHfem35aO3WoMyps_mynP5ui6ieiSlt-TjyyjpWnWeR_OfHHu-rI9XGL4xg3D13UsEh_2TSurbOrqFivVVPUO0ezKesC2Nw1WB10NWkvUmVMaXVpSElJ6fN4mi8-cVWY7WUhZliWvciebvClUr_e6xr3ZF0WpxK7As7IuX-LIQxyz2K0h6XlMbHQ2UfplVClxB-NawQVfzTSF2PGwlZrL50KibOXv1vh_AubdOZ4">