Skip to content

Clang-format inserts space between static_cast<...> and expression that deferences #53876

Closed
@zhihaoy

Description

@zhihaoy

Sample:

auto f = [](storage fn_, Args &&...args) {
  static_cast<T &> (*get<T>(fn_))(std::forward<Args>(args)...);
};

If you remove *, that space following static_cast<T &> disappears (correctly).

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorclang-formatconfirmedVerified by a second party

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions