Skip to content

[clang-format] AlignArrayOfStructures ignores Cpp11BracedListStyle #57611

Closed
@gerboengels

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions