Menu ▾ ▴

#518 --break-blocks

closed-fixed
None
2023-04-01
2019-01-18
hsong
No

struct right after if block with parenthesis makes every line break after them

for example

if (expr) {
}

struct some_struct s;
a = 1;
b = 1;
c = 1;

becomes with astyle --break-blocks

if (expr) {
}

struct some_struct s;

a = 1;

b = 1;

c = 1;

Discussion

  • hsong

    hsong - 2019-01-18

    version is 3.1, (reproduced on mac)

     
  • Foo Bar

    Foo Bar - 2019-03-10

    Can be reproduced on windows, too.

    I think there is something wrong around line 1479.

    The attached patch fixes the problem but I'm not sure about any side effects. Maybe Jim Pattee find some time to have a short look at it?
    Thank you very much in advance!

     
  • André Simon

    André Simon - 2023-02-05
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2023-04-01
    • status: open-accepted --> closed-fixed
     
  • André Simon

    André Simon - 2023-04-01

    Fixed in 3.2.1

     

Log in to post a comment.