Issue 71550
Summary [FR] clang-format expand AllowShortEnumsOnASingleLine with options
Labels clang-format
Assignees
Reporter FalcoGer
    I would like to have more options for the `AllowShortEnumsOnASingleLine` format configuration. I want to use empty enum classes as type safe wrappers for integral types, and I want them to be on a single line.

In particular, I would like the same options as `AllowShortFunctionsOnASingleLine`, that is

- None: Never put enum members on a single line
- InlineOnly: Only put enum members on a single line inside a class/struct/function
- Empty: Only empty enums can be put on a single line
- Inline: Inside a class/struct/function or when empty
- All: Always permit enums on a single line
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to