Issue 90837
Summary There is no option to add line break before brace of array initializer in clang-format
Labels clang-format
Assignees
Reporter yudaikobayashi
    There is no option of brace wrapping for array initializer in `BraceWrapping` when you set `BreakBeforeBraces: Custom`.
As a result, line break before brace would be inconsistent.
Here is very simple example:

```
// AfterEnum: true
enum test_enum
{
    0,
    1,
 2,
};

// But there is no option for array initialization
int test_array[3] = {
    0,
    1,
    2
};
```

I tried above in 
- clang-format 17.0.6 along with VS Code C/C++ Extension
- clang-format 18.1.4 from LLVM Download Page.

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to