[PATCH] D78982: [clang-format] Fix Microsoft style for enums
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 28 02:07:14 PDT 2020
MyDeveloperDay added a comment.
I think the name should be `AllowShortEnumsOnASingleLine`
As once the enum goes over a certain width it will revert to as it was before.
enum { EOF, VOID, CHAR, SHORT, DOT, NUMBER, IDENTIFIER } A;
vs
enum {
EOF,
VOID,
CHAR,
SHORT,
INT,
LONG,
SIGNED,
UNSIGNED,
BOOL,
FLOAT,
DOUBLE,
COMPLEX,
CONST,
RESTRICT,
VOLATILE,
ATOMIC,
STRUCT,
UNION,
ENUM,
LPAREN,
RPAREN,
LBRACKET,
RBRACKET,
ASTERISK,
DOT,
NUMBER,
IDENTIFIER
} A;
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78982/new/
https://reviews.llvm.org/D78982
More information about the cfe-commits
mailing list