If I build clang-format from tip of master and run it
using this .clang-format file
AllowShortIfStatementsOnASingleLine: Always
it will change this single line if statement
if (x) { x++; }
into this three line if statement
if (x) {
x++;
}
How do I keep it as one line?
If I delete
Done. https://bugs.llvm.org/show_bug.cgi?id=43913
On Mon, Nov 4, 2019 at 3:36 AM MyDeveloper Day
wrote:
> Could I ask you to log a defect over in https://bugs.llvm.org to this
> effect, The examples using AllowShortIfStatementsOnASingleLine don't
> include braces
>
> MyDeveloperDay
>
> On Sun,