[clang] [Clang] Diagnose unsatisfied `std::is_assignable`. (PR #144836)
Ross Kirsling via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 24 11:56:29 PDT 2025
================
@@ -2285,6 +2286,31 @@ static void DiagnoseNonTriviallyCopyableReason(Sema &SemaRef,
SemaRef.Diag(D->getLocation(), diag::note_defined_here) << D;
}
+static void DiagnoseNonAssignableReason(Sema &SemaRef, SourceLocation Loc,
+ QualType T, QualType U) {
+ const CXXRecordDecl *D = T->getAsCXXRecordDecl();
+
+ if (T->isObjectType() || T->isFunctionType())
----------------
rkirsling wrote:
Sounds great! Updated.
https://github.com/llvm/llvm-project/pull/144836
More information about the cfe-commits
mailing list