This adds an option to control reference alignment separately from pointer alignment.
.clang-format:
PointerAlignment: Left ReferenceAlignment: Middle
Before:
int*myFunction1(int*ptr1,int&ref1); int&myFunction2(int&ref2,int*ptr2); int&&myFunction3(int&&ref3,int**ptr3);
After:
int* myFunction1(int* ptr1, int & ref1); int & myFunction2(int & ref2, int* ptr2); int && myFunction3(int && ref3, int** ptr3);
You are missing a documentation change (there is a python script which update the ClangFormatStyleOption.rst from this header)