.clang-format function parameter consecutive alignment

Viewed 75

Is there anyway for me to achieve this in .clang-format?

Currently I have these three lines of code:

displayUtilizationLevel( disp, util, "CPU", k_StartRow, k_StartColumn, flag::displayLength::standard );
displayUtilizationLevel( disp, mem, "MEM", k_StartRow + 1, k_StartColumn, flag::displayLength::standard );
displayUtilizationLevel( disp, swap, "SWAP", k_StartRow + 2, k_StartColumn, flag::displayLength::standard );

and I would like them to be formatted as the following:

displayUtilizationLevel( disp, util, "CPU" , k_StartRow    , k_StartColumn, flag::displayLength::standard );
displayUtilizationLevel( disp, mem , "MEM" , k_StartRow + 1, k_StartColumn, flag::displayLength::standard );
displayUtilizationLevel( disp, swap, "SWAP", k_StartRow + 2, k_StartColumn, flag::displayLength::standard );

Is this possible to achieve?

0 Answers
Related