Skip to content

Formatting doesn't work when using AlignAfterOpenBracket=BlockIndent and empty parameter for the function #73002

Closed
@Smartfanat

Description

@Smartfanat

I have the following clang-format file:

ColumnLimit: 80
AlignAfterOpenBracket: BlockIndent

This is a result of formatting:

void convert(message::Output &, mynamespace::MyTestObject1 &, mynamespace::MyTestObject2 &) {
}

length of the string is 93 character(limit is 80).
But when there is a parameter name param it works as expected:

void convert(
    message::Output &, mynamespace::MyTestObject1 &,
    mynamespace::MyTestObject2 &param
) {}

Is this an expected behaviour?

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