0

Using the Uncrustify Code beautifier, How to add new line before declare and assign a variable ?

I want to convert this:

void Function()
{
    int a;

    function();
    a = 1;
    int b = a;
    function();
    function();
}

To this expected result:

void Function()
{

    int a;

    function();

    a = 1;
    int b = a;

    function();
    function();
}

Also possible, I would accept a solution if it adds a new extra line per assign too

KammutierSpule
  • 109
  • 1
  • 5

0 Answers0