Open
Description
The following code raises clang(implied_comparison_category_type_not_found)
:
struct awoo {
friend auto operator<=>(awoo,awoo) = default;
};
The following code then raises: clangd(unused-includes)
:
#include <compare>
struct awoo {
friend auto operator<=>(awoo,awoo) = default;
};
Not sure how to reproduce on Compiler Explorer.
To fix it, one must use std::strong_ordering
instead of auto
.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
llvmbot commentedon Mar 11, 2025
@llvm/issue-subscribers-clang-include-cleaner
Author: Jan Schultke (Eisenwave)
To fix it, one must use
std::strong_ordering
instead ofauto
.