Frage

What is the right config for uncrustify so that it removes empty lines before curly braces so that:

        }

    }
    else
    {
        // foo
    }
    [bar tend];

}

becomes:

        }
    }
    else
    {
        // foo
    }
    [bar tend];
}

I scourged the docs but couldn't find the right setting, maybe it has an unusual name.

War es hilfreich?

Lösung

Found it. The following will take care of spurious blank lines.

eat_blanks_after_open_brace   = TRUE
eat_blanks_before_close_brace = TRUE
nl_max = 2
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top