<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63478>63478</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang-tidy: modernize-use-nullptr produces a false-positive on std:: strong_ordering (spaceship operator result)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
fastasturtle
</td>
</tr>
</table>
<pre>
```
#include <compare>
int main() {
auto res = 0 <=> 1;
if (res < 0) {} // warning: use nullptr [modernize-use-nullptr]
}
```
https://gcc.godbolt.org/z/89W17v8j7
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUctu5CAQ_Jr2pTUjDMaPgw-TTPwLe1xh6PEQYbB4JEq-fmVnol1FK1ltRDXVXVUqJbt4ohHkE8hrpUq-hzjeVMoq5RKzo2oO5mOElj0-dgV2AS6s164YQhDPOqybigTi5YEe1fqMq7IeeA98QOievu4REVXJASMlBHFFtnOAuIJ4wRrEP232hsD7r75nZN803RWBT8AnfFfRW7-AuGBJhL44t-WIIJ_WYCh6-0mnkuj0AEBeHxt234cfuo56z3lLIC5fQxatz0swc3D5HOICfPoEPvXDr7p761-7yozCDGJQFY1123eyEXXDqvuoSWre1nVDt24QwhjO-k5KxaTub-zWVHbkjAvWclF3cmDsTLWcW1N3s2yHWfcKGkarsu7s3Nu6z65sSoXGVjRdXzk1k0tHcpx7escDBM73IOO4vznNZUnQMGdTTn9Zss2Oxmen_HLK1nzs9v3XL9xiMEVTQoU35RKdtpBstm-EwWPKZjdJXDDlGPzyO0RD0fplDy1tSlO62w3DRlHlEPe8i8vAh6pEN_4w2eZ7mc86rMCnfdHH77TF8Eo6A58OeQn4dMj_EwAA__-yz9Ot">