clang-format style options for enums

前端 未结 3 1538
我在风中等你
我在风中等你 2021-02-04 03:54

Does anyone know how to configure clang-format to keep enum\'s on individual lines?

i.e.

enum {
    ONE,
    TOW,
    THREE
};

vs.

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 04:21

    Per this answer, setting ColumnLimit to 0 will also achieve this behaviour.

提交回复
热议问题