Clion strange code indentation

Viewed 797

I am using Predefined style -> Allman braces and this is the strange behavior I get:

// this looks good 
int edges = 0;

long        variable_2 = 0;
AnotherLong obj        = 0;


// this looks bad      way off
int edges              = 0;

long        variable_1;
long        variable_2 = 0;
AnotherLong obj        = 0;

The variables should be grouped in columns, however an empty line should indicate a new "block" of code, right ? On the first case int edges = 0; is aligned fine, why not in the second case ? How can I fix that ?

Edit: Created a bug report

0 Answers
Related