The option SpaceBeforeForLoopSemiColon controls whether clang-format puts
a space before the semi-colons in a for loop. When disabled (default) there
is no change to the current behavior. When enabled clang-format will put a
space before semi-colons in for loops:
enabled:
for (int i = 0 ; i < 10 ; ++i) {}
for (int i = 0 ; auto a : b) {}
disabled:
for (int i = 0; i < 10; ++i) {}
for (int i = 0; auto a : b) {}
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
A better description would be nice, here only the false case is described. I'd rather see something that describes the option is in general and adds that true will add/keep a space.