Skip to content

[clang-format] incorrect space added r-value reference  #71681

Closed as not planned
@tdegeus

Description

@tdegeus
struct foo {
  template <class T> decltype(auto) operator()(T&& t) const {}
}

should not be formatted with

PointerBindsToType: true

but is formatted to

struct foo {
  template <class T> decltype(auto) operator()(T && t) const {}
}

clang-format 17.0.4

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