Does anyone know how to configure clang-format to keep enum\'s on individual lines?
i.e.
enum {
ONE,
TOW,
THREE
};
vs.
Another solution is to use:
BraceWrapping:
AfterEnum: true
Which will result in the following:
enum
{
ONE,
TOW,
THREE,
};
This isn't ideal because it forces a newline before the {
, but in my opinion this is worth considering as ColumnLimit = 0
disables all smart code wrapping, and many people may find that not worth giving up.