Skip to content

Regression with clang-format 14 & 15  #59066

@OldBragon

Description

@OldBragon

The line

LongClassName<AnotherLongClassName>{param}->longFunctionName(param0, param1);

is formatted to:

LongClassName<AnotherLongClassName> { param } -> longFunctionName(param0, param1);

with Clang 13 and the attached configuration file, and formatted to:

    LongClassName<AnotherLongClassName>
    {
        param
        } -> longFunctionName(param0, param1);

with Clang 14 & 15.

Reproduced with https://clang-format-configurator.site/
Thanks
clang-format.txt

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions