Skip to content

clang-format: Add config option to allow function parameters to be displayed on separate lines #62963

@ameerj

Description

@ameerj

For AMD's PAL library, the style guidelines require each parameter in a function definition to occupy a separate line.

For example:

void SomeFunction(
    int param)
{
}

void SomeOtherFunction(
    int  param,
    bool cond)
{
}

There does not seem to be any configuration for clang-format to achieve this style.

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