<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylU8uunDAM_ZqwsUAQhrnDgsV9dL6gatchMeAqQ1ASZi79-jrM3LZSu6hUKYQkdo6Pj53ema2z9nrJr-gDuVnUz1DVonwT5bNb0u5G8_EAOXy5O0BVFmVRteWhhpeVrIF9fb_xmI_lxRn0M33HfA2YR6_I0jzmHuPq5zxuC7ITfFVzFPIpQHQw0DvECWFw1jqOOQr5Cv0a06FHUPxJ8KiCm0My3aaNTRQgTG5lFrOLMKllwbn4yeIx9u3gCWcDauVYbkGvovOifhX1m6g_CXl6Bs3ITOeY0H_ftYyN7xqXCOwNBge12ijql7_Guc9QFcBHKVpKlGkqy-TNBotHjYbzu2e7zjqyqgXciQAqbzfAd4oPIFnA510BxpgdzIgmyRUW1DRsO8guZ1ILtWK5gWJyvnsQu9NlsaQpMvCVVOL1ex5M74_YwILQkIBuu7g9F6Cnkdy6a5-CandZyKpE_uE0cJEBKdULbmpj4TLT1aatW5WxEJPz3Rn7HrPV226KcQncXkKeeYx8a-0LxuRNasfHL1-8-4aa63CmEFbk6Oemrpsmm7qh1U39pOWh0c2xNbIyqjfSHFVVnhpzaDOrerShE82LkHLGG-wQvBbNW_b_DKiTpZRlJWUlq7Z5KhrT4rFsUDblqZdai0OJF9akSDiF82Pm70-tX8fARkshhl9GFQKNXN6dMDOMXDDstFX8biIZ1vP0D6-Ku3VQlptgcYEiXdOD8h-15l74aP1sz6bbU_kBDYRK1Q>53355</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy(modernize-use-trailing-return-type) false positive for defaulted operator
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Febbe
</td>
</tr>
</table>
<pre>
llvm-version: 13
op: win64 - Version 10.0.19043 Build 19043
`modernize-use-trailing-return-type` Want's to fix the following, but there are 2 reasons, why this should not happen.
```
friend auto operator<=>(A const&, A const&) noexcept = default;
```
1. `auto` is already preceding the function. => early exit
2. There is no need to specify the type, because it is specified implicitly via `= default` => early exit (if it would be abigious, the compilation would fail either way)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNU8GOmzAQ_RpzGYHABJIcOGR3my-o2rPBA0zlYGSbZOnXdwzZdqX2UAkM9gzvvXkztFavjTH3W3pH58lOorxAUYr8TeQXO8fdg6b6ACl82xOgyLM8K875oYSXhYyG7X3_4rnW-c1qdBP9xHTxmAanyNA0pA7D4qY0rDNyEnxXUxDy6CFY6OkdwojQW2Mscw5CvkK7hHjoEBTfEhwqbycfQ49x5RB58KNdWMVkA4xqnnHKfqt4Xtu2d4STBrUwl53RqWCdKF9F-SbKL0KeLtAxMsupI_rn3Zmx8b3DOQBng8ZeLSaI8uWfPPsKRQZ8FNlioSxTGRavV5gddqi5vr3aZeoCu5rBLgRQObMCvlN4AskMvm4OMMZkYULU0S4_Y0f9uoFsdka3sFNsN1CIyXsGcTrdZkMdBQa-k4q6PtfB8v7iBjaE-gj02MxtuQEtDWSXzftI2tnbTEZF8c-knpsMSLFf8FArG5foptTn8qySwOzYdEbxEATSHDz9x4iw9b0yXNFsPQW6x-lwH8K5sI8-JoszzRjC7HlghbzyNbCOpc1YJW_igD8f6ezsD-y4s1fyfkGu51qVZVUlY3Oseln3pxMPdIkq14dzfjyVtdZl3dX5oUiMatH4RlQvQsoJH7BB8Luo3hJqZC5lXkhZyOJcHbNKn7HOK5RVfmpl14lDjjeuMos6MuuGxO2_XrsMnoOGfPB_gsp7GrjdGx3j8yyN1jVXbFtMNuJmE_4L7-s0qA">