Skip to content

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

@EugeneZelenko

Description

@EugeneZelenko
Contributor

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.

Activity

llvmbot

llvmbot commented on Jun 12, 2025

@llvmbot
Member

@llvm/issue-subscribers-clang-format

Author: None (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @EugeneZelenko@llvmbot

        Issue actions

          [clang-format] Fine-grain control for AlignConsecutiveDeclarations · Issue #143947 · llvm/llvm-project