Braces layout for function declarations

EditorConfig key: cpp-invocable-declaration-braces

Braces layout for function declarations

cpp-invocable-declaration-braces

Placement of the opening brace for function declarations and definitions.

Default value:

unset

Possible values:

  • unset
  • end_of_line
  • end_of_line_no_space
  • next_line
  • next_line_shifted
  • next_line_shifted_2

Examples

unset
end_of_line
void foo() {
  return;
}
end_of_line_no_space
void foo(){
  return;
}
next_line
void foo()
{
  return;
}
next_line_shifted
void foo()
  {
  return;
  }
next_line_shifted_2
void foo()
  {
    return;
  }