Issue 179728
Summary [clang-format] AllowShortEnumsOnASingleLine not honored when EnumTrailingComma enabled
Labels clang-format
Assignees
Reporter JWTheDBA
    Enums are split into multiple lines when EnumTrailingComma is set to Insert, despite AllowShortEnumsOnASingleLine being set to true.

Example:

enum test { A, B, C };

transformed to 

enum test {
  A,
  B,
 C,
};

Ideally, the trailing comma would be added AND the enumeration put on a single line when AllowShortEnumsOnASingleLine is true.

clang-format version 23.0.0git (https://github.com/llvm/llvm-project.git 91c4decc01522c0130d47f8270330194259f4207)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to