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

closed-fixed
None
2015-01-03
2014-07-24
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
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks