<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/80123>80123</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format with BlockIndent and ContinuationIndentWidth < 4 not working for if statements
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          JoElfner
      </td>
    </tr>
</table>

<pre>
    When using clang-format v18.0 with the following minimum config:

`yaml
---
AlignAfterOpenBracket: BlockIndent
IndentWidth: 2
ContinuationIndentWidth: 2
ColumnLimit: 80
`

### Input

And I try to format the following if statement:

`c++
if ( name== "ABCDE" || name == "ASDASD" || name == "asldmald" || name == "someverylong" || name == "break this" || name == "abcde") {
  callthismethod();
    alsoassignthis = 24;
}
`

### Current output

clang-format correctly formats everything except for breaking the if statement with `BlockIndent`:

`c++
if (name == "ABCDE" || name == "ASDASD" || name == "asldmald" || name == "someverylong" || name == "break this" || name == "abcde") {
  callthismethod();
  alsoassignthis = 24;
}
`

### Expected output:

`c++
if (
  name == "ABCDE" || name == "ASDASD" || name == "asldmald" 
  || name == "someverylong" || name == "break this" || name == "abcde"
) {
 callthismethod();
  alsoassignthis = 24;
}
`

Comment: I don't mind where the `||` operators go, even though I'd prefer the math-style of breaking before it.

Any way to achieve this?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcVcGO4jgQ_RrnUgIZGwgccgDSSKxW2sMc5uzElcTbjo3sSjP8_coJ3QOzYnekVe9hpAgSV5Vd9V7Vs4rRtA6xYKs9W5WZGqjzofjNv9jGYcgqr6_F1w4dDNG4FmqrXDtrfOgVwdtiM-dwMdQBdQiNt9ZfkldvnOmHHmrvGtMyuWO8ZPz9d82vqrfTx2w2m1521rRu1xCGP87o9kHVr0hM7mBvff16chodTZ7T-1ejqUt2Ma0evCPjBkXGu2cedujd76Y3474b_pHOQ3ZCTg-c3Hmge9POaTgBhSuQhxsEj3WbBiIpwj4l-7eqayb26Rm_TQNMbMCpHpksmSyBCbHbH8oXJgSw_MDyw2iFO_OXcvelfG5X0epeWf3cI_oe3zBcrXftc68qoHoF6kz8h7OqWiMTgoktsPxWFECtrE2BPVLnNRMbJrZMfpgBlI1-arrkljYEsfzwYHn5L6wchhDQEfiBfqDnoTVrHwLWZK83oiKMdVOXaMJvNZ4pWWAsNa0lIu_pm9qarfl9_635T7H6I22_Oqv_ldOXb2esCfU7qT-D8fvZn4j17YT_DfMbKvfIfwrwB9_fBApOoL1jIqck2RouHQYcRyGFjNmyNQd_xqDIhwitZ-KQRskBdX5oOzgxkWs4B2wwjJG9om4W6WoRfPN9vipsfEAwNH-U1Ctc1Cioqu4MvuEEljxmupB6K7cqw2KR8_V6u5LrbdYVyEWuV8uq4Su5qSqRVyu9WjZqUa-lXG9VZgrBxZIv5GLBuVhu53ohN1LyZqtQ59VKsCXHXhk7t_atn_vQZibGAYsNXwiZWVWhjeN9KMS9piSKVmUWihQ2q4Y2siW3JlL8vhEZslg8KNGoI3ciAsppeHJbAZMHWILzBBcfRtySSN3rUsyGYIuO6BzTnIgjE8fWUDdU89r3TBxTLre_2Tn4P7EmJo5jhZGJ41jkXwEAAP__fWxMuQ">