indent_else_if

Whether to indent if following else as a new block under the else.

If false, else\nif is treated as else if for indenting purposes.

Possible values are true and false, default false.

Examples

true

Before:

if (x<y) {
  std::cout << "x is less than " << y << '\n';
}
else
if (x < 5) {
  std::cout << "Also x is than five" << y << '\n';
}

code after:

if (x<y) {
  std::cout << "x is less than " << y << '\n';
}
else
  if (x < 5) {
    std::cout << "Also x is than five" << y << '\n';
  }

false

Code in above example will not be changed for false.

See also