Is a common practice to move function's opening brace to next line. How to apply this in class method with astyle (code beautifier)?
example:
// this is an initial C++ code
class Class
{
public:
static int foo(bool x) {
if (x) {
return 42;
} else {
return 0;
}
}
};
modified version should be:
class Class
{
public:
static int foo(bool x)
{ // this brace in next line
if (x) {
return 42;
} else {
return 0;
}
}
};
All my attempts working only for global functions.