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

    <tr>
        <th>Summary</th>
        <td>
            QualifierAlignment not working on top-level const + typenames
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    Example input:

```
$ cat /tmp/main.cpp
#include <cstdint>

void foo(const std::int32_t x,
         const std::int32_t& y)
{}
```

Output:

```
$ ./clang-format --style="{QualifierAlignment: Right}" /tmp/main.cpp 
#include <cstdint>

void foo(const std::int32_t x, std::int32_t const &y) {}
```

The correct alignment is applied for the reference parameter, but not for the first (value) parameter.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytUk2PmzAQ_TXmYgUZO3wdOCSb3WvVqvfKwABujW3ZQ7rpr68hm3SlrNQeiqwBex7z5j1Pa_tL8_wqZ6eBKuMWJOJA2ImwWyzY27pu-Z52EinhLzi7GGepTNo5d0sLZTq99ECJeOoC9srEis_vK56t6ulgLeFVZ01AGlErqThErODfkL4S_nTF0tvzMZLwgl4Ir9_Kl0dSnj5ue4ufFvwngWnU1Wlpxt1g_RzV7nYBLxqIOBHOI83nRWo1KPAHrUYzw6rxQL-occK1A84f_aH_26DH0ys4erJaQv_qxtcJ4i_eQ4dU3nRQFah0TitYW_AUI8jDAB5MB9RJL2dA8Ct_uyA1Fu-wQfmNvjpLvcDawh2eXhkTaLKiYHnJqiJL-kb0tahlggo1NI-ebtV_Wv9DmZFaQ9G6nYYz6LvSI8WLAxNJQrJ43UyILqym8Je4RoXT0qadneNG6_PttXPefo-q41aFsECIH3mZ5ftkamTRZZxndcl7YFVVsxj7oS0FKytoWZlo2YIODcmP8ZrfD8k6GfkpUQ1nnLMqyzOxzxhL91VZM8lFJWvG4gnZM4hDodO1ldT6MfHN1lW7jCEmtQoY_iRlCNEOgI0x1pcLTtY3nfTahlHqM_xyySaj2TT8BmqWJSA">