do a++; while (true);
becomes
do a++; while (true);
if AllowShortLoopsOnASingleLine is enabled.
One of the projects where I want to introduce clang-format formats single-line statements following a do on the same line as the do statement. This is one of the blockers in introducing clang-format for this project. I'm not sure if it's fine to put this behind an existing option or if a new option (AllowShortDoWhileStatementsOnASingleLine) should be introduced for this.
This is my first contribution to clang-format so apologies if I missed anything obvious. Any comments or help with any further steps to get this merged would be appreciated.