If I have a code something like this
void function()
{
return XXXXXXXXX && FFFFFFFFFFFFFF && MMMMMMMMMMMMMM;
}
How can I convert it in something like this
void function()
{
return XXXXXXXXX &&
FFFFFFFFFFFFFF &&
MMMMMMMMMMMMMM;
}
If I have a code something like this
void function()
{
return XXXXXXXXX && FFFFFFFFFFFFFF && MMMMMMMMMMMMMM;
}
How can I convert it in something like this
void function()
{
return XXXXXXXXX &&
FFFFFFFFFFFFFF &&
MMMMMMMMMMMMMM;
}
clang-format won't break a line like that unless you have reached the line limit, you can align the operands with:
AlignOperands: Align
you might want to check out
BreakBeforeBinaryOperators : All
You can find descriptions of these here: