#270 Enum members with comma at begining indentation

closed-fixed
2015-01-03
2014-02-25
Damian
No

I define an enum in C++ with commas at the beginning:
enum
{
    ALALALALALLA = 1 // comment
    , BLLBLBLBL = 2 // comment
    , CLCLCLCLCL = 3 // comment
};

After formatting with Allman I get this:
enum
{
    ALALALALALLA = 1 // comment
                , BLLBLBLBL = 2 // comment
                                    , CLCLCLCLCL = 3 // comment
};

Tried changing many parameters, can not get the initial format.
I kindly ask to add a switch for handling that case.

Discussion

  • Jim Pattee

    Jim Pattee - 2014-10-17
    • status: open --> open-fixed
    • assigned_to: Jim Pattee
    • Priority: 5 --> 7
     
  • Jim Pattee

    Jim Pattee - 2014-11-20
    • Status: open-fixed --> closed-fixed
     

Log in to post a comment.