Skip to content

[clang-format] AlignConsecutiveAssignments aligns = in operator= with =delete.  #54271

@DanielSeemaier

Description

@DanielSeemaier

clang-format config:

AlignConsecutiveAssignments: true

With otherwise default options aligns the equal sign in operator= with the equal sign that deletes the copy assignment operator:

struct F {
  void operator=(F const &) = delete;
  void operator             =(F &&) {
    // stuff
  }
};

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