MySQL 8.0.32
Source Code Documentation
Braces

if, while, etc. must always have braces, and each brace should be on a separate line.

Good example:

if (a == b)
{
dosomething();
}

Bad example:

if (a == b) {
dosomething();
}

Inline methods inside class (struct) are okay to write as shown below (i.e., opening brace is on the same line as the function declaration).

struct A
{
A() {
}
}