<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylVEtv2zAM_jX2RYghy87DBx_iZAEGZCiwdOiZlmhbrSIbktwu-_WT7KTNhl6GGYYe_MhPJEWq7sWlTLgC3S6a3pzBRXQf0W20otd_2i4Wi3lRgUXxoE_uojDKtuSb5Ka3fXM12yrVv5263rjDqLmTvbYPenuSulV4lHoy-aqVXz1odZltTg60ACMCdgSH9spVGYSXCr1XWBngaIPCbrSuP98UvPTJwDB4fg_OUkK2jUNzOz8YOTPiDZwJj3CuBVQ--L_x06Ck-3Ie3OWeoQFlryrzmCTJp4max0cfBOHwbnLT4cMwS6w_kjuyu-Lr6nY8IVI70kVsE7GC6B5_chzcB_qHavgMutFoskijrLpX29-o9-_Ap64-dag9CfDOJ5F0zg0hzxE7-L-VrhvrhPuEs4NSr7dpMZj-Gbnz21r1tZ_W0KRpsSlqZKloKAWxgmVKYZOlCCxnS8w3DRTUq061FohkMDzMNccOP_RbuEkUoUxmqb_FJGSMZUdW0IUflhHbER_Ad-S9EY_9C2q_I9IGYUjNiib3wXFOopyeX0Yj8JnEosxEkRUQw-h8jZa_OtlBf4lHo8p_jlxaO_qaZIdllmc07krMRVoIyJu8XtN6iRnwJmM5pyuAnDERK6hR2TJaVhFjGt_IROHX0XIf_78HsmSUMZqyFaN5QfOEirzZcEELusooFLlPBZ5BqiTwJL1pY1NOlPXYWg8qaZ39AMFa2WrEyWHvoZNOYbm7eyrIPk3Xac5IHVrV-j6SrxIUseEBIM21f0jn-9u3fBtPDpeTt78BcH1ZZg>53430</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang-format D117142 breaks trivial short function handling
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zhihaoy
</td>
</tr>
</table>
<pre>
.clang-format
```
---
BasedOnStyle: Microsoft
AllowShortFunctionsOnASingleLine: InlineOnly
Standard: Latest
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
BeforeLambdaBody: true
SplitEmptyFunction: false
...
```
Test case
```cpp
struct C
{
int h() noexcept
{
return -1;
}
};
```
When reaching https://github.com/llvm/llvm-project/blob/7af11989be21df00ad6a510a831ea2425e48fa90/clang/lib/Format/UnwrappedLineFormatter.cpp#L290-L295, `RecordToken` is `{`.
cc @mkurdej
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUslu2zAQ_RrpQkggKXnRQQfLroECLgLUKXKmyJHFhCYFkkrqfn1JyU6cIpcKApd5M28WvtaIS51zxfQp64w9M5_gXYI3yRJf_-maZdl8aJgD8aCP_qIgKTboh-TWONNdwzZKmbdjb6zfj5p7abR70Juj1CcFB6mnkO9ahdODVpc55uiZFsyKiB2YB3flaiywlwZCVdBYxsFFh-3ovDnfHIL1ybJhCPwBnK0IbToP9pY_Bnk7wg2cCQ_s3ArWhOb_xY-Dkv7befCXe4aOKXd1mdc8z78c1Lw-hiYQZ-8hNx8-DLPFhZTco-0VXzW39AhJ7VGf0HVCK6QN_OYw-A_0k2v8LPjRapSRpGju3XY36t078GWpTz3oQMJ4H4aIeu-HOOeE7sN_kr4f25yHgdO9Uq-3LRuseQbuw7VVpg3binWEVOuqBUpEhzETS7YgmK0LAoyWdAHlumMVDq6T1iKRjIH7WXN0_0u_xZcEEWUyW8Mr5nFitDjQCmdhWSR0i0IDP4EbKx7NC-hwQ9JFYxzNEuf3zXGOkhKfX0Yr4Bmloi5EVVQs9dIrqLd3qkc7QlakpKiNqnNBEvJVMoVc1DLqrlJAfZBqUO8pHa2q_3tY0rkxyJjuF0VZ4LSvWdXhpVhVxYoUpFqUghBekRIAQylKSlPFWlCuThZNQqmGNzRRhHOy2KWypphSTOiS4rLCZY5F2a25wBVeFphVZegdzkyqPNaRG3tKbT2V1I4nF0AlnXcfIHNOnjTAlC7ws9GH7us_veyZuaRT6noq_S9FrkLt">