llvm/llvm-project

Aligning consecutive assignments in enum blocks only

Open

#52,983 创建于 2022年1月4日

在 GitHub 查看
 (13 评论) (13 反应) (0 负责人)C++ (10,782 fork)batch import
clang-formatenhancementgood first issue

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)

描述

Could it be possible to have an option to align assignments in enum blocks?

For instance:

enum nntp_code {
    NNTP_INFO_HELP         = 100,
    NNTP_INFO_CAPABILITIES = 101,
    NNTP_INFO_DATE         = 111,
    NNTP_OK_BANNER_POST    = 200,
    NNTP_OK_BANNER_NOPOST  = 201,
    NNTP_OK_QUIT           = 205,
    NNTP_OK_COMPRESS       = 206,
    NNTP_OK_GROUP          = 211,
    NNTP_OK_LIST           = 215,
    NNTP_OK_ARTICLE        = 220,
    NNTP_OK_HEAD           = 221,
    NNTP_OK_BODY           = 222,
}

贡献者指南