#265 AStyle pads C++ rvalue identifier ('&&') as if it was an operator.

closed-fixed
Jim Pattee
C++11 (2)
7
2015-01-03
2014-01-18
Hagai Akibayov
No

Using the provided AStyle 2.04 for windows (AStyle_2.04_windows.zip -> bin/AStyle.exe):
https://sourceforge.net/projects/astyle/files/astyle/astyle%202.04/

with the following command:
AStyle.exe --pad-oper < A.hpp > AA.hpp

(A.hpp and AA.hpp are attached).

It seems AStyle refers to '&&' as the logical 'AND' instead of the rvalue reference type identifier.

The operator is padded with two spaces and an extra semicolon is appended to the end of struct A.

2 Attachments

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