<div dir="ltr">If I build clang-format from tip of master and run it<br>using this .clang-format file<br><br>  AllowShortIfStatementsOnASingleLine: Always<br><br>it will change this single line if statement<br><br>  if (x) { x++; }<br><br>into this three line if statement<br><br>  if (x) {<br>    x++;<br>  }<br><br>How do I keep it as one line?<br><br>If I delete the braces it stays on one line, but the<br>style guide for the code I work on says the braces are<br>required. If I modify my .clang-format file to be<br><br>  AllowShortIfStatementsOnASingleLine: Always<br>  AllowShortBlocksOnASingleLine: Always<br><br>it stays on one line, but I don't want all short blocks<br>on a single line, just the if statement block. Any ideas?</div>