Skip to content

clang-format regression around return statements with explicit operator calls #135972

@kadircet

Description

@kadircet

actual formatting:

struct S {
  explicit operator int*();
};

auto foo() {
  S s;
  return s.operator int * ();
}

expected formatting:

struct S {
  explicit operator int*();
};

auto foo() {
  S s;
  return s.operator int *();
}

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions