Menu

#415 Support for C++11 initializers

closed-fixed
None
2017-01-14
2016-11-15
No

class Foo {
Foo()
: var1 { 0 }
, var2 { 1 } {
}

int var1;
int var2;

}

AStyle is confused by the var1 { 0 } part, it thinks it's a code block and makes "var2" shifted 4 spaces backwards. Works with var1 (0).

Discussion

  • Jim Pattee

    Jim Pattee - 2016-11-19
    • status: open --> open-fixed
    • assigned_to: Jim Pattee
    • Priority: 5 --> 7
     
  • Jim Pattee

    Jim Pattee - 2016-11-19

    This seems to have been fixed with #381.

     
  • Miro Kropáček

    Miro Kropáček - 2016-11-21

    Great! Any release date planned yet? :)

     
  • Jim Pattee

    Jim Pattee - 2016-11-22

    I hope to have a new release by the ens of year.

     
  • Jim Pattee

    Jim Pattee - 2017-01-14
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.