Braces layout for export declarations

EditorConfig key: cpp-export-declaration-braces

Braces layout for export declarations

cpp-export-declaration-braces

Placement of the opening brace for export blocks in C++20 modules.

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