Simple block style

EditorConfig key: cpp-simple-block-style

Simple block style

cpp-simple-block-style

Layout for a single-statement compound block.

Default value:

do_not_change

Possible values:

  • do_not_change
  • on_single_line
  • line_break

Examples

do_not_change
if (cond) { x++; }
on_single_line
if (cond) { x++; }
line_break
if (cond) {
  x++;
}