Hi guys,
I hope this is the correct forum to ask. After reading clang-format style options documentation, I mean nearly there with my desired style. I just have problems with two break:
First:
struct test demo[] = {
{56, 23, "hello"},
{-1, 93463, "world"}
};
Is it possible to break before first brace? To have this:
struct test demo[] =
{
{56, 23, "hello"},
{-1, 93463, "world"}
};
And the second case:
switch (myarray[0][0])
{
case 1: {
return 0;
break;
}
case 2: {
return 3;
break;
}
default:
break;
}
I would like to break after case, like this:
switch (myarray[0][0])
{
case 1:
{
return 0;
break;
}
case 2:
{
return 3;
break;
}
default:
break;
}
Thanks for any help!