uncrustify icon indicating copy to clipboard operation
uncrustify copied to clipboard

Only indenting when character limit reached

Open ZeroIntensity opened this issue 2 years ago • 0 comments

pretty new to uncrustify, was wondering if it was possible to only indent (or even unindent) things like function calls if it exceeds the set character limit.

so something like this

void foo() {
    bar("hello world", 1, 2, 3);
    bar("this is a very long string!", 893249583, 543532, 5345324);
}

goes to this

void foo() {
    bar("hello world", 1, 2, 3);
    bar(
        "this is a very long string!",
        893249583,
        543532, 
        5345324
    );
}

didnt see anything like this in the config, but its pretty long so i may have missed it. maybe this could be added if it doesnt already exist?

ZeroIntensity avatar Feb 10 '23 14:02 ZeroIntensity