Say I want to mock MyClass::myMethod using Google Mock:
class MyClass {
public:
virtual ReturnType myMethod(int) const = 0;
};
I'd use:
MOCK_METHOD(ReturnType, myMethod, (int), (const override))
but clang-format with QualifierAlignment=Right turns that into:
MOCK_METHOD(ReturnType, myMethod, (int), (override const))
an error.
See documentation for Google Mock here:
https://google.github.io/googletest/reference/mocking.html