Skip to content

[clang-format] Inconsistent indentation with brace list initialization and #if'd element #61637

@aeubanks

Description

@aeubanks

The following code is formatted as follows:

const std::vector<std::string> kStrings {
#if SOME_DEFINE
  "z",
#endif // SOME_DEFINE
      "a", "b", "c",
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions