[clang] [webkit.RefCntblBaseVirtualDtor] Allow CRTP classes without a virtual destructor. (PR #92837)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Thu May 23 18:46:09 PDT 2024


================
@@ -11,16 +11,134 @@
 #include "PtrTypesSemantics.h"
 #include "clang/AST/CXXInheritance.h"
 #include "clang/AST/RecursiveASTVisitor.h"
+#include "clang/AST/StmtVisitor.h"
 #include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
 #include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
 #include "clang/StaticAnalyzer/Core/Checker.h"
+#include "llvm/ADT/DenseSet.h"
+#include "llvm/ADT/SetVector.h"
 #include <optional>
 
 using namespace clang;
 using namespace ento;
 
 namespace {
+
+class DerefAnalysisVisitor
----------------
rniwa wrote:

Hm... but it's important that the function in question is `deref()` though. In that, that's what guarantees the object to be eventually deleted appropriately. Maybe `DerefFuncDeleteExprVisitor`?

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


More information about the cfe-commits mailing list