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

    <tr>
        <th>Summary</th>
        <td>
            formatting gets confused with constructor parameters and no set parenthis
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```
$ clang-format --version
Debian clang-format version 14.0.6-2
```
[.clang-format.txt](https://github.com/llvm/llvm-project/files/9316415/default.clang-format.txt)
[.clang-tidy.txt](https://github.com/llvm/llvm-project/files/9316416/default.clang-tidy.txt)


1) the brackets are clamped to the first column:
[format_1_expected.txt](https://github.com/llvm/llvm-project/files/9316375/format_1_expected.txt)
[format_1_formatted_brackets.txt](https://github.com/llvm/llvm-project/files/9316376/format_1_formatted_brackets.txt)

2) the lines don't break at 80. The first StateChange looks ok, the second not:
[format_2_expected.txt](https://github.com/llvm/llvm-project/files/9316377/format_2_expected.txt)
[format_2_formatted.txt](https://github.com/llvm/llvm-project/files/9316378/format_2_formatted.txt)

3) the string gets cramped into a column:
[format_3_expected.txt](https://github.com/llvm/llvm-project/files/9316379/format_3_expected.txt)
[format_3_formatted.txt](https://github.com/llvm/llvm-project/files/9316380/format_3_formatted.txt)

4 + 5) look ok. With and without extra return type info on lambda: 
[format_4_formatted.txt](https://github.com/llvm/llvm-project/files/9316381/format_4_formatted.txt)
[format_5_formatted.txt](https://github.com/llvm/llvm-project/files/9316382/format_5_formatted.txt)

6) Adding type info on vector of stateChanges completely breaks the 80. But adding parenthesis makes it happy again:
[format_6_expected.txt](https://github.com/llvm/llvm-project/files/9316383/format_6_expected.txt)
[format_6_formatted.txt](https://github.com/llvm/llvm-project/files/9316385/format_6_formatted.txt)
[format_6_formatted2.txt](https://github.com/llvm/llvm-project/files/9316386/format_6_formatted2.txt)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1lduOmzAQhp8GbqwgbIMDF1zsQX2BturlysBA3ABGttkmb9-BnEg226gSKyEw2J755-NnyHW5zzwRHo_w1QufPBaRopFdvaq0aaUjq9U7GKt0d5h_hVzJ7nrJcQGhURAGYsWOkW4Cx8_BfFfgds6LXz2WbJzrrccx9Tc8auU2Qx4UusWbpnk_XVa90b-hcHhbqQYsXlNORURjHJVQyaFxHxOw9Da7U-V-sdziQ-5z-HPm2ZniU-I2QHIjiy04S6SBkWXbQ0mcnuYqZawjhW6GthuVnfQfqnqjb7DrUQuUC1XB1yPB-9Fn-M4LDgNc8XaqYjEhYi7kkzzXXNmJaKM6sKREm7K1Q74gtwStmYQB-XGG-t1JBy8bfE-4QeutJXrrsZcpgIVCdyXptLsDnS0PfX2plT2Czi4wFsufzPNfh79GzE-IrTOqq0k9-rYwB8-qDl0rP3crXx5cehHOH4Hjy4NLwnn-f4GLiMeeSTziG82GXgvIL8xGJPrsDw704AjsnJHEgBtMR9y-B0RaaYLdFLtCXkrUSW6rir6gKnqp6jb8R6zxFwhgFwG34a-xihHoU1mOXrwC9o5htSG6Qqeev3O0qm77Bhw0-0NbsJOZx8bwjPzlIVCPjbjD51ZZ0sotblOObGTf74mspbpnbbG4tRN-YSAeWVt8wTuI5_kfmWC2gi2mQNxVwK4k-JBRIUIepuuQ-mXGy5Sn0nfKNZAd91wale6qwcLhgxvvsIsNk0_wlcsWfWHs9EF2Gn8B7mQEZf3BNNl_V6OsHaZy4jWlqb_JoExkXsFaCBrJQpaQr3kKKJnJoqJR6Dcyh8ZmyNVjrIM_ZAqBY-Tpq4yFjIUJZZTjOQ04pEJUOY-prAQtUy8KoZWqCUYdgTa1b7JJUj7UFicbZfG_eZ6U1qq6A5jSYXw5YBcy2U9Tadj5U-ZsUv4X9DpHvg">