Skip to content

[clang-format] Have an option to add a comment at the closing brace of a loop, switch, case etc #124741

@MrMfromK

Description

@MrMfromK

There is an option to add a comment giving the name of a namespace at the closing brace of a namespace (FixNamespaceComments).
My wish is to have something similiar at the closing brace of loops, switch, case, if, else showing the respective instrution at the opening brace.
Maybe with a minimal number of lines between opening and closing brace and a seperate option for each of the mentioned instructions.
Would be great help!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions