uncrustify icon indicating copy to clipboard operation
uncrustify copied to clipboard

indent_continue breaks nested continuation indents?

Open dbartolini opened this issue 3 years ago • 0 comments

Not sure if it's intended behavior but I think indent_continue = 4 should make continuations 4-spaces wide relative to the start of the statement being continued.

Version: Uncrustify_d-0.75.1_f.

Config:

input_tab_size = 4
output_tab_size = 4
indent_columns = 4
indent_with_tabs = 0

indent_ignore_first_continue = false
indent_continue = 4

Input:

namespace ns
{
first(foo
, bar
, second(foo
, bar
)
);

first(begin
, end
, [](foo, bar) {
second(foo
, bar
);
}); 
}

Output:

namespace ns
{
first(foo
    , bar
    , second(foo
    , bar           
    )               
    );

first(begin
    , end
    , [](foo, bar) {
        second(foo
        , bar 
        );    
    });
}

Expected:

first(foo
    , bar
    , second(foo
        , bar
        )
    );

first(begin
    , end
    , [](foo, bar) {
        second(foo
            , bar
            );
    });
}

dbartolini avatar Jul 15 '22 20:07 dbartolini