The zero-as-null-pointer-constant check should not fire if it is inside
a defaulted function, e.g. defaulted spaceship operators.
Add C++20 tests with spaceship operators.
Fixes #50221
Differential D138727
[clang] Skip defaulted functions in zero-as-null-pointer-constant. massberg on Nov 25 2022, 9:12 AM. Authored by
Details The zero-as-null-pointer-constant check should not fire if it is inside Fixes #50221
Diff Detail
Event TimelineComment Actions LGTM with a few NITs. Thanks!
Comment Actions Note: The build failures are in parts of the code that isn't effected by this change. |
NIT: maybe even shorten to "ignore in defaulted comparison operators"