clang-format : keep spacing between function arguments

Viewed 28

I am trying to format my function calls so that the whitespace between the arguments is preserved as shown here:

function_call(  arg1,  arg2,  arg3);
function_call( -arg1,  arg2, -arg3);

However, when I run clang-format, I get the following:

function_call(arg1, arg2, arg3);
function_call(-arg1, arg2, -arg3);

Could someone point me in the right direction to which format style option I might not be understanding?

The visual alignment of the arguments really helps the readability and understanding of the code I'm working on and I would hate to lose this.

Thanks!

0 Answers
Related