Braces layout for linkage specifications

EditorConfig key: cpp-linkage-specification-braces

Braces layout for linkage specifications

cpp-linkage-specification-braces

Placement of the opening brace for linkage specifications such as extern "C".

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
extern "C" {
  void f();
}
end_of_line_no_space
extern "C"{
  void f();
}
next_line
extern "C"
{
  void f();
}
next_line_shifted
extern "C"
  {
  void f();
  }
next_line_shifted_2
extern "C"
  {
    void f();
  }