mod_remove_extra_semicolon

Whether to remove superfluous semicolons.

Possible values are true and false, default false.

Conflicts with sp_after_semi.

Works a bit incorrectly with Uncrustify_d-0.70.1_f.

Examples

Base config:

sp_after_semi = ignore
mod_remove_extra_semicolon = <example value>

Base example:

int x = 10;;
int y = 20;

if (x<15) y=3;;;;

true

Result:

int x = 10;
int y = 20;

if (x<15) y=3;;

Note one additional semicolon remains in last line.

false

Base example remains unchanged.

See also