Braces layout for lambda expressions

EditorConfig key: cpp-anonymous-method-declaration-braces

Braces layout for lambda expressions

cpp-anonymous-method-declaration-braces

Placement of the opening brace for lambda expression bodies.

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
auto f = []() {
  return 0;
}
end_of_line_no_space
auto f = [](){
  return 0;
}
next_line
auto f = []()
{
  return 0;
}
next_line_shifted
auto f = []()
  {
  return 0;
  }
next_line_shifted_2
auto f = []()
  {
    return 0;
  }