clang-format: All conditions on same line or all on new line

Viewed 50

Assuming the following code example, either I want all conditions on a single line, if it's under ColumnLimit or all conditions in their own line if ColumnLimit is reached.

if (loc.latitude > 90.0f || loc.latitude < -90.0f || loc.longitude > 180.0f || loc.longitude < -180.0f ||
    1241312312412 > 13231231241232) {
    return false;
}

Is there any configuration for that? I've only found this for function parameters with BinPackArguments and BinPackParameters.

0 Answers
Related