I use the following parameters in the .clang-format file:
AlignConsecutiveDeclarations: true PointerAlignment: Right
The current formatting result is as follows:
char * var1; SomeOtherType *var2; int var3;
Expected Result:
char *var1;
How to configure clang-format to align an asterisk (*) with a variable name and not with a type when I use the AlignConsecutiveDeclarations parameter?
clang clang-format
lanoxx
source share