Skip to content

C++ lambda expression formatting is entirely corrupted #14068

@AlseinX

Description

@AlseinX

Environment

Environment is irrelevant to this bug

Bug Summary and Steps to Reproduce

The formatter with default configuration enforces this format

delegate([this]() { std::this_thread::sleep_for(std::chrono::milliseconds(1000)); next_query(); });

Every symbol appear at surprisingly unreasonable positions.
Even though I believe some configuration would solve the problem, but
Why should the formatter mess up our code by default?

Configuration and Logs

All by default.

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions