#217 Fix for align-pointer in range-based for

2.x
closed-fixed
Jim Pattee
Patches (3)
7
2013-11-05
2013-05-14
No

In next lines of code astyle treat '&' and '*' as operators instead of reference and pointer.
for(auto& item : container)
for(auto* item : container)
for(int& item : container)
for(int* item : container)
thus adding spaces around those characters with pad-oper instead of align-pointer setting.

Attached patch fixes that.

Discussion

  • Jim Pattee
    Jim Pattee
    2013-10-09

    • status: open --> open-fixed
    • assigned_to: Jim Pattee
    • Priority: 5 --> 7
     
  • Jim Pattee
    Jim Pattee
    2013-10-09

    Patch applied in SVN. Thanks.

     
  • Jim Pattee
    Jim Pattee
    2013-11-05

    • status: open-fixed --> closed-fixed