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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Changed formatting of trailing return type between version 18 and 19
        </td>
    </tr>

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

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

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

<pre>
    Hi!

We are testing bumping our clang-format installation from version 18 to 19, and notice a fair amount of churn, without changing the config file. In particular, this type of code:

```
auto foo(Type a, 
 Type b) -> std::enable_if<....>
{}
```

Gets transformed into:

```
auto foo(Type a, Type b) 
    -> std::enable_if<...>
{}
```

Do you know if there's a newly added option that controls this behavior, or what could be the reason for this change?

Thanks!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU02PozgQ_TXmUgoCk4Rw4NDd6ezuvaU9rgoowNuOK7LLiTK_fmSI1BlpNBqNhGz88cqv6tXDEMzkiFq1e1W7Y4ZRZvZtj95ymNBe6dsl63i4t38bpUtVHFXxso7_EqAnEApi3ARdPF_SzNFDb9FNm5H9GQWMC4LWohh2MHo-w5V8SIvyAMJQNkq_AboBHIvpCRBGNB7wzNEJ8Aj9HL1Ll25GZo4C_YxuSo_JTNCzG80Eo7GUwz8OLujF9NGiTxCZTQC5X2gJxAOp6uU5C7UvHt-yxCgMI7PSh48EwhRjPYJlo1O6gY2q3iHIkGJVL-Sws_SfGVX1lud5rqr3R-z6VdXHn76zjn-RBBCPLqRa0QDGCf8BwS9mD6oAv-b4-xSPDHeO8On4BmZMBfekdB0AwdHN3gGHgQbgyyKvzChJEPFsw1r7jma8Gl7EYA-39Ua0A3S06OcJQ-oM9itgEZdUdXqm8TGj-wxKl9nQVkNTNZhRW9a6PjS7YrvN5paKqi_2h6LRuitpVw2IzWGr90NXY7fHPjOtLvS2LApdHhImRz12WNZ935R1tT8UalvQGY3Nrb2ec_ZTZkKI1JZl0ZRlZrEjGxajaP3c4UrrZB3fJtymi1NQ28KaIOErkhixi8l-AO6O8LZkO8C6sziJx9QTxqZ_TxK9Wxu4I7kRuWf7JNeUTRa9bWeRS0hi65PSp8nIHLu857PSp8TiMW0unv-nXpQ-LckFpU-P_K6t_h4AAP__9rpANQ">