I am using the following options in my .clang-format
file:
AlignConsecutiveDeclarations: true
PointerAlignment: Right
The current formatting result is the following:
char * var1;
SomeOtherType *var2;
int var3;
The result I was expecting would be:
char *var1; //note the changed position of *
SomeOtherType *var2;
int var3;
How can I configure clang-format
to align the asterix (*) with the variable name rather then with the type when I am
using the AlignConsecutiveDeclarations
option?