Allow comment after opening brace

EditorConfig key: cpp-allow-comment-after-lbrace

Allow comment after opening brace

cpp-allow-comment-after-lbrace

If true, a comment may follow an opening brace on the same line.

Default value:

true

Possible values:

  • true
  • false

Examples

true
void f() { // ok
  return;
}
false
void f()
{
  // ok
  return;
}