================
@@ -79,6 +79,11 @@ inline bool ShouldCheckFieldOriginEscape(Sema &S, const Decl 
*D) {
       diag::warn_lifetime_safety_field_origin_escape, D->getBeginLoc());
 }
 
+inline bool ShouldCheckDestructorUses(Sema &S, const Decl *D) {
+  return !S.getDiagnostics().isIgnored(
+      diag::warn_lifetime_safety_destructor_use_after_scope, D->getBeginLoc());
----------------
usx95 wrote:

I think this also needs the invalidation warning as well.

https://github.com/llvm/llvm-project/pull/204650
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to