Suppose you have the following C code, creating a global array variable:
int array[]=
{
1,/**/
2/**/
};
When I use clang-format --style="{UseTab: Always}" command, four spaces are inserted like
int array[] = {
1, /**/
2 /**/
};
instead of a tab character I was expecting.
By the way, I think clang-format should provide a style preset that may satisfy Linux Kernel checkpatch. The entire reason I am submitting this issue is because I cannot adapt both my original code and clang-format style which satisfy the script without warning.
Suppose you have the following C code, creating a global array variable:
When I use
clang-format --style="{UseTab: Always}"
command, four spaces are inserted likeinstead of a tab character I was expecting.
By the way, I think clang-format should provide a style preset that may satisfy Linux Kernel checkpatch. The entire reason I am submitting this issue is because I cannot adapt both my original code and clang-format style which satisfy the script without warning.