Issue 58148
Summary [clang-format] FEATURE REQUEST: Newline after opening braces.
Labels new issue
Assignees
Reporter florianbecker
    If would be nice if there were a parameter to control forced newlines after opening a function body:
```cpp
void foo() {
  bar();
  if ( _expression_ ) {
    foobar();
  }
}
```

Should result in:
```cpp
void foo() {

  bar();
  if ( _expression_ ) {

    foobar();
  }
}
```

Working with clang-format-15, which is the first version to support inserting braces on single liner, this would be the next level to support all possibilities. Also, the newline in lambda is always removed and somewhat inconsistent already!
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to