Skip to content

[clang-format] BreakAfterAttributes: Leave does not respect multiple attributes #163537

@duckdoom5

Description

@duckdoom5

The clang format setting BreakAfterAttributes: Leave Does not leave the line break(s) between attributes.

Expected formatting:

[[deprecated("Don't use this version")]]
[[nodiscard]] 
bool Test() {
    return true;
}

[[deprecated("Don't use this version")]]
[[nodiscard]] bool Test2() {
    return true;
}

Actual formatting:

[[deprecated("Don't use this version")]] [[nodiscard]]
bool Test() {
    return true;
}

[[deprecated("Don't use this version")]] [[nodiscard]] bool Test2() {
    return true;
}

clang-format version: 19.1.5

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