ls_func_split_full

Whether to fully split long function prototypes/calls at commas. The option ls_code_width has priority over the option ls_func_split_full.

Possible values are true and false, default false.

Works only with non-zero code_width.

Examples

true

Config:

code_width = 80
ls_func_split_full = true

Before

// following line shows code_width limit
// a a a a a a a a  a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

int sum(int short_name, int first_long_name_is_very_long, int second_long_name_is_long_too)
{
    int result = first_long_name_is_very_long;
    result += second_long_name_is_long_too;
    return result;
}

After

// following line shows code_width limit
// a a a a a a a a  a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

int sum(int short_name,
        int first_long_name_is_very_long,
        int second_long_name_is_long_too)
{
    int result = first_long_name_is_very_long;
    result += second_long_name_is_long_too;
    return result;
}

false

Config:

code_width = 80
ls_func_split_full = false

Before

// following line shows code_width limit
// a a a a a a a a  a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

int sum(int short_name, int first_long_name_is_very_long, int second_long_name_is_long_too)
{
    int result = first_long_name_is_very_long;
    result += second_long_name_is_long_too;
    return result;
}

After

// following line shows code_width limit
// a a a a a a a a  a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a

int sum(int short_name, int first_long_name_is_very_long,
        int second_long_name_is_long_too)
{
    int result = first_long_name_is_very_long;
    result += second_long_name_is_long_too;
    return result;
}

See also