================ @@ -547,6 +547,20 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: + // Suppress -Wdeprecated-declarations in purely implicit special-member functions. + if (const FunctionDecl *FD = S.getCurFunctionDecl()) { + // Only proceed if this is an implicit, defaulted member function: + if (auto *MD = dyn_cast_if_present<CXXMethodDecl>(FD); + MD && MD->isImplicit() && MD->isDefaulted()) { + // Match any special-member kind: + if (isa<CXXConstructorDecl>(MD) || + isa<CXXDestructorDecl>(MD) || ---------------- shashi1687 wrote:
Thank you for the feedback! I’ve made the changes 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