<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58010>58010</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format QualifierOrder produces wrong orders
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lizhuimu
</td>
</tr>
</table>
<pre>
$ clang-format-16 --version
Ubuntu clang-format version 16.0.0-++20220925052850+bcb1397bda66-1~exp1~20220925172953.390
.clang-format:
`---`
`BasedOnStyle: google`
`QualifierAlignment: Custom`
`QualifierOrder: ['inline', 'constexpr', 'static', 'type', 'const', 'volatile']`
input:
`template <typename T1>
std::array<char const*, 2> const Foo<T1>::kBar {"a", "b"};`
bad output:
`template <typename T1>
std::array<char const*, 2> Foo<T1>::kBar const {"a", "b"};
`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1k9uOmzAQhp_G3FggHziECy5y2NyuqrYPYMAQt8aOfMg2ffoOkDSb1ap3lYw9Hn8z84-wW9tfG8Ry3GlhxnSwbhIhpSVO04t0XlmDyAGR7fc2mhCfKHwDMC0zkpEUsR0MRhgjNStIwTYFAUfbtZTXVduLskwpql7kr_O83EFasbrgGa_JWmmds_eVEL95UUnSNIX573YnvOxfzddw1RIwPFo7gvWO-BKFVoOSbqvVaCZp5nR4H32w06fcq-ulmxlUQEOVMloZCQZiewxLZ40P0IN7uHwQQXWPfbiePwY8thergdYLUBweCpZZmXN8ajfI6Qy8xIjv57RGTBJ_o4i_rIgP_YzzrXBOXAHqTsLhW8ntXJIBuzrw0Vog1ugl6OcOYFRBm0zAtypk7WxWB8R3H9S1osc2hv8j8XNxq_B_SbzLSGRDyzJnJctpnvQN72teiySooGXzdG-f_zQ-O9vHTnr85qwZsZ2dPolON6cQzn4Ww44wRhVOsc06uDbsqPXlvqSQ4IfsoJmj8j5KD0axIZQkp0YQQWVbDX0tmOS0GGhJ2oHmVdnzjWBdokUrtW-Wq8aMfMNLirm74pCo5vZIKlKRssgzMRT1hg28qut8IDxHOZGTUDqbdWTWjYlrFkltHD0cauWDfxwK7-EJSLmUg_wihpOFCPX7FNUUk6V2s2j_A4YUMOQ">