Skip to content

[clang-format] Fine-grain control for AlignConsecutiveDeclarations #143947

@EugeneZelenko

Description

@EugeneZelenko

Currently AlignConsecutiveDeclarations has AlignFunctionDeclarations to enable/disable alignment for function. It'll be good idea to add similar options for variables and data members.

My work project consistently align data members, but use mixed formatting for variables, so it's necessary to enable alignment only for data members.

Same is true for AlignConsecutiveAssignments.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions