Issue 53355
Summary clang-tidy(modernize-use-trailing-return-type) false positive for defaulted operator
Labels new issue
Assignees
Reporter Febbe
    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)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to