Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indent_continue breaks nested continuation indents? #3752

Open
dbartolini opened this issue Jul 15, 2022 · 0 comments · May be fixed by #3816
Open

indent_continue breaks nested continuation indents? #3752

dbartolini opened this issue Jul 15, 2022 · 0 comments · May be fixed by #3816

Comments

@dbartolini
Copy link
Contributor

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
            );
    });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants