Skip to content

Attributes and PointerAlignment: Left violates ColumnLimit #139514

Open
@kadircet

Description

@kadircet

command: clang-format -style='{PointerAlignment: Left, ColumnLimit: 80}' a.cc

actual formatting:

void foo(
    const MySuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLongTypeName* const
        my_super_super_super_super_super_long_variable_name) {}

Note that second line above is 81 chars long. Despite the ColumnLimit defaulting to 80.

epxected formatting:

void foo(
    const MySuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLongTypeName*
        const my_super_super_super_super_super_long_variable_name) {}

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions