[clang] [Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads (PR #93113)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 27 10:16:27 PDT 2024


================
@@ -1126,9 +1126,6 @@ class QualType {
   /// Return true if this is a trivially relocatable type.
   bool isTriviallyRelocatableType(const ASTContext &Context) const;
 
-  /// Return true if this is a trivially equality comparable type.
-  bool isTriviallyEqualityComparableType(const ASTContext &Context) const;
----------------
AaronBallman wrote:

Yeah, it's not that we already have this information, it's a different approach to your current patch so that the functionality continues to live on `Type` (the benefit is that external consumers like downstreams or clang-tidy could continue to use the same interface they always have but get slightly more accurate results from it). If that is more effort than it's worth, I don't insist -- I'm not aware of any breakage from your current changes.

https://github.com/llvm/llvm-project/pull/93113


More information about the cfe-commits mailing list