Menu

#383 indent-preproc-define define of init member value

closed-fixed
2018-02-16
2015-12-01
biao
No

--indent-preproc-define / -w

#define DEFAULT_CONFIG_VAL \
{                       \   
    .a = 123,           \
    .b = 345,           \
    .c =123,            \
    .d = 123,           \
    .e = 345,           \
    .f =123         \    
}   

become

#define DEFAULT_CONFIG_VAL \
    {                       \
        .a = 123,           \
             .b = 345,           \
                  .c =123,            \
                      .d = 123,           \
                           .e = 345,           \
                                .f =123         \
    }

if the member is much more ,It is so hard to read.

Discussion

  • biao

    biao - 2015-12-01
    //#define DEFAULT_CONFIG_VAL \ 
    and then
    #indent-preproc-define
    

    Nothing changes better.

     
  • Jim Pattee

    Jim Pattee - 2018-01-29
    • status: open --> open-fixed
     
  • Jim Pattee

    Jim Pattee - 2018-01-29

    This is fixed in the current release.

     
  • Jim Pattee

    Jim Pattee - 2018-02-16
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB