While working on a clang-format option RemoveBracesLLVM that removes braces following the guideline, we were unsure about what to do with the braces of do-while loops. (See D126157#inline-1209965.) The ratio of using to omitting the braces is about 4:1 in the llvm-project source, so it will help to add an example to the guideline.
Also cleans up the original examples including making the nested if example more targeted on avoiding potential dangling else situations.
I'm not really a fan of this one. I DO really like the 'cascading single-liners', and want to keep those omitting braces. The example @mehdi_amini pointed out is important to me to keep.