Feature request `keep-one-line-enums`
I'm using keep-one-line-statements
and keep-one-line-blocks
which works in the intended way.
To keep the global scope as clean as possible, I tend to replace #define
s by embedded enum
s like in the following case.
struct MsgRec
{
// (parts ommited)
enum { MAX_MSG_LEN=1024 };
char msg[MAX_MSG_LEN]; // message text
};
Unfortunately, astyle always breaks the line after the keyword "enum", which impairs readability:
struct MsgRec
{
// (parts ommited)
enum
{ MAX_MSG_LEN=1024 };
char msg[MAX_MSG_LEN]; // message text
};
Is there maybe already a way to achieve my goal? If not, may I request a new option?
Edited by Peu