Is there a flag in clang-format to change 'const west' to 'east const', so that the following:
void fun(const std::string &s);
would be reformatted to:
void fun(std::string const &s);
As of Clang-Format 14, there is QualifierAlignment
. Add the following line to your .clang-format configuration file:
QualifierAlignment: Right
AFAIK it isn't implemented yet, but there is a feature request in their bugtracker.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With