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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Unexpected formatting on function parameter
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          LinZhihao-723
      </td>
    </tr>
</table>

<pre>
    clang-format version: 18.1
Config file: https://github.com/LinZhihao-723/clp/blob/lint-update/components/core/.clang-format
Formatting output: https://github.com/LinZhihao-723/clp/blob/lint-update/components/core/src/clp/ir/LogEventDeserializer.cpp#L13
Formatted result:
```
template <typename encoded_variable_t>
auto LogEventDeserializer<encoded_variable_t>::create(ReaderInterface& reader
) -> BOOST_OUTCOME_V2_NAMESPACE::std_result<LogEventDeserializer<encoded_variable_t>> {
```
Expected result:
```
template <typename encoded_variable_t>
auto LogEventDeserializer<encoded_variable_t>::create(
        ReaderInterface& reader
) -> BOOST_OUTCOME_V2_NAMESPACE::std_result<LogEventDeserializer<encoded_variable_t>> {
```
Result from clang-format 17:
```
template <typename encoded_variable_t>
auto LogEventDeserializer<encoded_variable_t>::create(ReaderInterface& reader)
 -> BOOST_OUTCOME_V2_NAMESPACE::std_result<LogEventDeserializer<encoded_variable_t>> {
```
Not sure if this is a bug or missing configuration in .clang-format. Would be appreciated if someone can help take a look :D
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMlV2LnDAUhn9NvDmMmGTU8cILdz6gsLtT9qOF3gxRj5puTCSJQ7e_vujMtjuwLfSidEXQ5OScPHlJ3gjnZKsRcxJfkXgTiNF3xubXUn_pZCfMImU8KE39nFdK6HbRGNsLD0e0ThpNeAF0FVISbUhUrI1uZAuNVDgFOu8HR3hB2I6wXSt9N5ZhZXrCdhflCdtVaiBsVypTErZTUvvFONTC4xQy_WA0au_mhp36wtcsp7l387-XugUz-mH0_5bA2epnkrRTPdNuj6j9Bh1aKZT8jjashoEwfk35BSPWYNGNakI8BUgSnd-56bEflPAIhK_984Ba9AioK1NjfTgKK0Wp8OAJ357Gi9EbeAuA8PXbabwgvKgszgtc3aGo0X7QHm0jKiQsATt3nelYBgvCt3C1398_HPaPD-v9zfbwiR1ui5vt_cdifS7ofH14Wdn673i2QNKrN8XYfhuwen-anarA-XnXCt7NBaGxpoeLQ0zT96Lm7_Vj2Vnp_6ffrfHgRosgG_CddCAdCCjHFoyFXjo3mU41e99ohZdGg9Rw4VEhfDajqqFEEMNgsZJi2tKyAWd6NBqhEho6VAN48YQgQBnzBIQXm6DOeZ3xTASY05TGPKHJigVdzrMlo6s0aXi9jMsSI06jiK7iNKojmiRZIHMWsWUU04imjDIWRqlIlnGEWZIJxIqRZYS9kCpU6tiHxraBdG7EPKNpSgMlSlTu5V6w-TRoUY6tI8tISefdrzQvvZpvkAtfjjfwqPHl-DavDFpDM-pqVmoQVvTo0QajVfkfDHua7PxZDNZ8xcpP3jsBT748M_8IAAD__0ehL54">