Skip to content

clang-format: Consider one statement per line for chained bool equalities #57280

@aeubanks

Description

@aeubanks
bool f() {
  return display_id == other.display_id &&
         parent_display_id == other.parent_display_id &&
         position == other.position && offset == other.offset &&
         offset_reference == other.offset_reference;
}

personal preference, but it's easy to miss that the third line actually has two equalities

feel free to close if you disagree/not worth the effort

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions