<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56216>56216</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: Puts noexcept specifier on empty line
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AMS21
</td>
</tr>
</table>
<pre>
Given the following source `test.cpp`:
```cpp
struct A {
template <typename... T> A(T...) noexcept;
};
```
And running `clang-format test.cpp --style=Webkit`
results in the following output:
```cpp
struct A {
template <typename... T>
A(T...)
noexcept;
};
```
tested and confirmed versions
```
clang-format version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
clang-format version 14.0.4 (https://github.com/llvm/llvm-project.git 5f66e721ec1d099cf2370235ce122cf47c287308)
clang-format version 13.0.1
clang-format version 12.0.1 (https://github.com/llvm/llvm-project.git fed41342a82f5a3a9201819a82bf7a48313e296b)
clang-format version 11.1.0 (https://github.com/llvm/llvm-project.git 1fdec59bffc11ae37eb51a1b9869f0696bfd5312)
clang-format version 10.0.1 (https://github.com/llvm/llvm-project.git ef32c611aa214dea855364efd7ba451ec5ec3f74)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylk01v3CAQhn8NvqC1-DY--LDptj1VqtRIPWMYdmlZ2zI47f774m02m0ZtoqQSsmeGgXneAfrRnbqP4Q4GnA-A_Rjj-CMMe5zGZbaAkSIZUq7tNBUT8S0iO0S2q30ea_wcSXlebMZbjJqb3xGMMxynaHLZhb_LpwkGc4S6rvEt4u_xFjF9WzzEWjyM8NPClBG_X4ua3dW-1Lp3z9_t4PC8DMOKumJEM-w3fpyPJuMLMN5sUj5FQHz3FfrvIT_ZY4a0xJxweKp9XPK05FeKfV7uNeuR7mvw9Q1YRYLDpvTBjoMP87F4dzCnMA7pr-v-6NF9JqaiJrXChemQ85RWzexDGfuQD0tf2_FYnBjvLr_NNI_fwOa6JGDPtCVEGalb6S0BzloPVHowTlPgjZCN7amjD1L_jSDeiCC9UtAwCpY60rbWM94QxqUFypj1orFMN5zoFxB4QaDPJbA14a1tAicoF8xo5qXhpmWEatoWt_eNEZpTDqxV_QuMtKY1eSMC9Q6sbHvvLaWmHA30khrat1q1nqhS3DvJKXsBgfxHF8BzZlWpbhgVDoyWkisB3jW9EbIcoATLfSMeEJ5c38p13LW8NVUOOUL3mLCQ4M9LecqXd4TTBDb4ADMu3OVd5hOOYYBqmWP3OvjihpQWSMWQilFVHTriPAjXeM2N470rh6e00AwY7TkTglTR9BBTh-QNkrsqdIwwRhSTVArCeS2s8g3nRGqjrNIaCQJHE2K9Fq7HeV_N3ZmhX_apTMaQcrpOmpTCfgC47G-WfBjnbvvpC6PVGbY7k_4CHTzCEw">