Menu

#98 C++: initializer list indentation amount

1.0
accepted
None
2023-01-27
2016-05-09
David Andrs
No

Add an option to set ASBeautifier::classInitializerIndents to 2. In our projects, we indent the initializer list by 2 indents, but we cannot set it via command line.

Discussion

  • Jim Pattee

    Jim Pattee - 2016-05-09

    Could you show an example of the result?

     
  • David Andrs

    David Andrs - 2016-05-09

    Unformatted:

    C::C(int param) :
      B(),
      a(param) {
    
      }
    

    Formatted:

    C::C(int param) :
        B(),
        a(param)
    {
    
    }
    

    Flags used: -A1 -R -s2 -Y -p -H -U -k2 -W2 -xj -xW -O

     
  • Jim Pattee

    Jim Pattee - 2018-01-29

    Ticket moved from /p/astyle/bugs/398/

     
  • André Simon

    André Simon - 2023-01-27
    • status: open --> accepted
    • assigned_to: André Simon
    • Milestone: --> 1.0
     

Log in to post a comment.

MongoDB Logo MongoDB