================ @@ -2663,6 +2663,9 @@ static bool HasNonDeletedDefaultedEqualityComparison(const CXXRecordDecl *Decl) { if (Decl->isUnion()) return false; + if (Decl->isLambda()) + return Decl->captures().empty() && + (Decl->getLambdaCaptureDefault() == LCD_None); ---------------- cor3ntin wrote:
This pattern is used in a few places, maybe we should factor it out https://github.com/llvm/llvm-project/pull/68506 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits