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

    <tr>
        <th>Summary</th>
        <td>
            Clang-format: QualifierAlignment moves const to wrong location
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    ````
void f()
{
      NS::C const *p = &v;
}
````
becomes
````
void f()
{
      NS const ::C *p = &v;
}
````
instead of
````
void f()
{
      const NS::C *p = &v;
}
````

[reproduction.zip](https://github.com/llvm/llvm-project/files/10891555/reproduction.zip)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckkur3CAUxz_NyUbu4CPmsXCRuUMWXRRKoXuNJxmLiUHNlPbTl3mEWVwKnSuiB-Wc8_v_VafkpgVRgTyCPBV6y-cQ1Zcf3YpLYYL9raCiz0lPQLtLcJaMwBvg7f0E6uM9ILfx9TuIDkT3ToawpEyAdysBcSLAqwuI4550egQfOhgcwozpX9f_AbB3fnC8TOCWlFFbEsZPQ9wJnl68zPBY5THiGoPdhuzCcvjjVpAn4M055zVdi_MeeD-5fN7MYQgz8N77y769rTH8xCED70fnMQHvGW1aJqUE3n-ovGsprBK2Fa0uULGqbihjvKmLs7KmqgYpNKVCyspWphwbxNKyWjfGNqZwilMuqKCSUVaW9YHRUtatQcMEbVsuoKQ4a-cPV7xDiFPhUtpQVYw1beG1QZ_2_xjVTYPZpgQl9S7l9EzLLntU714v09sY4qwziI5827R3o8PYeTctMy6ZzOGC6fEeOZBfMSwT8WHQV9nFFr162csb8tXMG_XfAAAA__89mOgf">