Skip to content

clang-format: Add configuration option to allow function parameters to be on new lines in function declarations #158742

@Fanteria

Description

@Fanteria

Currently, there is an option BreakFunctionDefinitionParameters to control line breaks for function definitions.
It would be useful to have a similar option, for example, BreakFunctionDeclarationParameters, to control line breaks in declarations as well.

Example:

void FunctionDeclaration(
    int a,
    int b);

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