#297 --align-reference fails to collapse whitespace around rvalue reference

closed-fixed
Jim Pattee
None
7
2015-01-03
2014-07-24
Travis Vitek
No

Notice that the whitespace surrounding the reference is collapsed when it is moved left, but the whitespace surrounding the rvalue reference is not.

[vitek@seacat] 379 % ./astyle --version
Artistic Style Version 2.04
[vitek@seacat] 380 % cat t.cpp
struct Test
{
    Test(const Test & rhs);
    Test(Test && rhs);
};

[vitek@seacat] 381 % ./astyle --align-reference=type < t.cpp
struct Test
{
    Test(const Test& rhs);
    Test(Test&&  rhs);
};

Discussion

  • Jim Pattee
    Jim Pattee
    2014-10-26

    Fixed.

     
  • Jim Pattee
    Jim Pattee
    2014-10-26

    • status: open --> open-fixed
    • assigned_to: Jim Pattee
    • Priority: 5 --> 7
     
  • Jim Pattee
    Jim Pattee
    2014-11-20

    • Status: open-fixed --> closed-fixed