I’ve worked on ‘misc-qualifiers-order’ check for clang-tidy some time ago, but haven’t finished it, but it’s still working in the most casual cases. There are some corner cases that I haven’t solved, e.g. combined const/restrict/volatile qualifiers, (nested) pointers and template parameters and arguments, probably typedef and using type aliases aren’t covered either.
You’ll see it in the tests anyway.
You can have a look at: