llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[clang-format] AlignArrayOfStructures ignores Cpp11BracedListStyle

Open gerboengels opened this issue 4 years ago • 2 comments

$ 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 }
}

gerboengels avatar Sep 07 '22 14:09 gerboengels

@llvm/issue-subscribers-clang-format

llvmbot avatar Sep 07 '22 14:09 llvmbot

https://reviews.llvm.org/D158795

galenelias avatar Aug 25 '23 00:08 galenelias