[clang] Improve diagnostics on implicitly deleted defaulted comparisons
authorMatheus Izvekov <mizvekov@gmail.com>
Tue, 9 Mar 2021 02:02:09 +0000 (03:02 +0100)
committerMatheus Izvekov <mizvekov@gmail.com>
Sat, 13 Mar 2021 00:13:52 +0000 (01:13 +0100)
commitc9fd92d573988c59b7a613f07909596cdad36095
tree5951e28fc3c10a90b51501f8cea090085274e958
parentbbd0dc3d6506542ac53b171c982eab84d8e7cef0
[clang] Improve diagnostics on implicitly deleted defaulted comparisons

This patch just makes the error message clearer by reinforcing the cause
was a lack of viable **three-way** comparison function for the
**complete object**.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D97990
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CXX/class/class.compare/class.compare.default/p1.cpp
clang/test/CXX/class/class.compare/class.compare.default/p2.cpp
clang/test/CXX/class/class.compare/class.compare.default/p4.cpp
clang/test/CXX/class/class.compare/class.eq/p2.cpp
clang/test/CXX/class/class.compare/class.spaceship/p1.cpp
clang/test/CXX/class/class.compare/class.spaceship/p2.cpp