llvm-project
llvm-project copied to clipboard
[clang-format] AlignArrayOfStructures ignores Cpp11BracedListStyle
$ clang-format --version
clang-format version 15.0.0
$ echo "auto x = { { a, b }, { c, d } }" | clang-format --style="{ Cpp11BracedListStyle: false, AlignArrayOfStructures: Left }"
auto x = {
{a, b},
{ c, d}
}
Note the inconsistent spacing before a and c
With Cpp11BracedListStyle: false I'd expect the following, with spaces both before and after the curlies
auto x = {
{ a, b },
{ c, d }
}
@llvm/issue-subscribers-clang-format
https://reviews.llvm.org/D158795