Issue 87484
Summary [clang-format] Cannot break blocks properly
Labels clang-format
Assignees
Reporter HermesonBF
    In my code I want to write this:

```
{
  cout << "test";
}
```

But clang-format formats to this:

```
{ cout << "test"; }
```

If I set BraceWrapping: AfterFunction = true, then it formats like the first, but this should not happen because this is not a function and this option refers to a function, I want to break only the indentation blocks with a single line of code inside without affecting everything else, if I set ColumnLimit = 0 then it also formats like the first but then it does not allow me to define variables with attributes in a single line.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to