Search code examples
c++uncrustify

uncrustify C++: Transform multiple variable initialization per line posible?


is it possible by using uncrustify to transform this:

int a, b, c, d=0;

to this :

int a;
int b;
int c;
int d=0;

Thanx


Solution

  • No, this is not one of the options.

    Such a thing would be more of a refactoring, than a simple tweak to spacing (which is mostly what this tool does).

    There's no open feature request for this at present, either; feel free to create one.