4 ms·
I think he's saying use tabs on lines A, B, and C up until the indentation level (the "int"). Then on line B use spaces for all the whitespace from there until
by simonbw 9y ago
I think he's saying use tabs on lines A, B, and C up until the indentation level (the "int"). Then on line B use spaces for all the whitespace from there until the text is aligned.
/*t*/int f() {
/*tabs*/int someVariableName = myFunctionCall(expr(5), // <--- line A
/*tabs*//*--------------spaces--------------*/somethingElse(9), // <--- line B
/*tabs*//*--------------spaces--------------*/a_long * expression + involving(multiple.subExprs));
/*tabs*/int d = somethingElse; // <-- line C
/*t*/}
- Sammi 9y agoThere's no reason to do this silly mix of tabs and spaces. Just move all parameters to a newline have have sane consistency everywhere: int f() { <tab> someVariableName = myFunctionCall( <tab><tab> expr(5), <tab><tab> somethingElse(9), <tab><tab> a_long * expression + involving(multiple.subExprs) <tab> ); <tab> d = somethingElse; }