================ @@ -547,6 +547,15 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: + // Suppress -Wdeprecated-declarations in purely implicit special-member functions. + if (auto *MD = dyn_cast_if_present<CXXMethodDecl>(S.getCurFunctionDecl()); + MD && MD->isImplicit() && MD->isDefaulted() && + (isa<CXXConstructorDecl, CXXDestructorDecl>(MD) || + MD->isCopyAssignmentOperator() || + MD->isMoveAssignmentOperator())) { + return; + } + ---------------- AaronBallman wrote:
Hello! It appears you're using AI for this PR. Our [developer policy](https://llvm.org/docs/DeveloperPolicy.html#ai-generated-contributions) touches on use of AI, so this by itself isn't a problem. However, are you certain your use of AI is in line with the community policy? In particular, the parts about licensing, correctness, and understanding? Reviewer time is one of our most precious resources, so we need to be sure that you understand and can defend the contribution, as well as be sure that it doesn't introduce licensing concerns. Thanks! https://github.com/llvm/llvm-project/pull/147400 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits