Wrap enum definition

EditorConfig key: cpp-wrap-enumeration-style

Wrap enum definition

cpp-wrap-enumeration-style

Default value:

unset

Possible values:

  • unset
  • wrap_if_long
  • chop_if_long
  • chop_always

Examples

unset
wrap_if_long
enum E { A, B, C };
chop_if_long
enum E { A, B, C };
chop_always
enum E {
  A,
  B,
  C
};