Uncrustify を使用して、ネストされた If-else にブレースを追加する方法があるかどうか疑問に思っていました。例えば:
if( stat_error == -1 ){
if ( debug > 0 )
printf( "...ERROR ); //I would like to add braces around here.
exit( -1 );
} else {
私はこれを見ました:
# Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
mod_full_brace_if = add # ignore/add/remove/force
しかし、ネストされた条件文では機能しないようです。
それを行う方法はありますか?