[clang] [alpha.webkit.NoDeleteChecker] Check if each field is trivially destructive (PR #183711)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 27 01:57:54 PST 2026


================
@@ -557,6 +560,35 @@ class TrivialFunctionAnalysisVisitor
     return false; // Otherwise it's likely not trivial.
   }
 
+  bool HasFieldWithNonTrivialDtor(const CXXRecordDecl *Cls) {
----------------
rniwa wrote:

You mean whether `CXXRecordDecl` is trivially destructible or not, right?

https://github.com/llvm/llvm-project/pull/183711


More information about the cfe-commits mailing list