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

Empty function call gets split despite using nl_func_call_empty #4263

Open
euinop opened this issue Mar 22, 2024 · 0 comments
Open

Empty function call gets split despite using nl_func_call_empty #4263

euinop opened this issue Mar 22, 2024 · 0 comments

Comments

@euinop
Copy link

euinop commented Mar 22, 2024

Using the following options:

nl_func_call_empty              = remove
nl_func_call_start              = force
nl_func_call_end                = force

The following code snippet:

std::transform(foo.begin(), foo.end(), bar.begin(), [](const std::complex<double> &c) { return c.real(); });

Becomes:

std::transform(
        foo.begin(
                ), foo.end(
                ), bar.begin(
                ), [](const std::complex<double> &c) {
        return c.real(
                );
}
        );

Instead I would expect the empty function calls like .begin() to still have the newline removed, like in the following:

std::transform(
    foo.begin(), foo.end(), bar.begin(), [](const std::complex<double> &c) { return c.real(); }
    );

Is there any option to achieve this?

Uncrustify version Uncrustify-0.78.1-155-213aaff30
Debug file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants