Menu

#537 Pointers not aligned for multiple declarations

closed-fixed
None
2023-05-19
2020-02-18
No

Consider following piece of code:

int main ()
{
    int *p, *q;
}

I ran astye as follows:

% astyle --version
Artistic Style Version 3.1
% astyle --align-pointer=middle --options=none test.c

int main ()
{
    int * p, *q;
}

Only the pointer p has been aligned in the middle while q remains unchanged.
Please fix this.

Regards,
Sulabh

Discussion

  • André Simon

    André Simon - 2022-12-07
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2023-05-10
    • status: open-accepted --> open-fixed
     
  • André Simon

    André Simon - 2023-05-10

    You might try the 3.3 beta3 release which contains a fix.

     
  • André Simon

    André Simon - 2023-05-19
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB