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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] QualifierAlignment/QualifierOrder leads to broken code when using qualified names
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format,
            invalid-code-generation
      </td>
    </tr>

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

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

<pre>
    Example input:

```cpp
#include <cstdint>

std::int64_t constexpr x{123};
```

Run:

```
$ clang-format --style="{QualifierAlignment: Custom, QualifierOrder:[constexpr, type,const]}" file.cpp
```

Output:
```
#include <cstdint>

std::constexpr int64_t x{123};
```

Repro: https://godbolt.org/z/Tdx4TeMoc
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMkk1v3CwUhX8N3iCP7IttJgsv5iPevYreKvsKw42HFoPLx3SSX1_hTJNMW6mVkCzD5Z7Dc48IQU8WsSftnrTHQqR4cr6XwhsXJmHO-LIUo1PP_f1FzItBqu2SImE7Uq2rq16XXJb8C0xbaZJCSthBhqi0jYTdvxaHqPJFttM2ds3nSKWzIeJl8fRC-L4GRviRsP3Hvq83PyX7u-Sq11BphJ3KJ-dnEWlZhvhskLAjASB8_38SRj9p9DujJztjdrOjhxSimwkc6Nv5g1fos0a7f3OVC-LzggQO6x5pj9kgAH3SBjfXJ986fUjxnc-N038i807kJ6O_kcHFu_ymU4xLyE1gIDBMTo3OxI3zE4HhhcDwqC7NI_7nZKF6pu7YnSiwrznbsorzjhWnXoxyW3GoherqGmXLO6HutsAROXDeVIXuoYK2qlld8bqr2EY0dVdXoutGhFExRZoKZ6HNxpjznLULHULCvoa25tvCiBFNWKMG8HFseVZwIADanoXRqpROYTmhRS-idjaft8fC97lvOaYpkKYyOsTwrhR1NGuMbxq3R_qHCMBwO3dqUKhAo6Ojd1_R0qxPv5_Q0hS0nei3a7miVswYiuRN_wtwHU9p3MgcqyGbun7KxbsvKLPmyiIQGK44zj38CAAA__87PBL1">