Closed
Description
Reopening #45580, as the problem was not solved:
https://godbolt.org/z/3hed7vPvM
#include <compare>
struct A {
int a;
constexpr auto operator<=>(const A&) const = default;
};
bool foo(A x, A y) { return x < y; }
Command line:
clang-tidy-13 -checks='hicpp-use-nullptr' tidy20.cpp -- -std=c++20
Output:
<source>:5:56: warning: use nullptr [hicpp-use-nullptr]
constexpr auto operator<=>(const A&) const = default;
^
nullptr
Also, for strange reasons I cannot escape it with NOLINTNEXTLINE with local clang-tidy-13.
Godbolt's trunk version suppresses warning correctly.
Metadata
Metadata
Assignees
Type
Projects
Status