[clang] [SSAF][Extractor] Extract operator new/delete overload entities that shall retain their types (PR #206600)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 2 05:08:14 PDT 2026


================
@@ -0,0 +1,58 @@
+//===- OperatorNewDeletePointers.h ------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Declares data structures for analysis that identifies pointer entities in
+// operator new/delete overloads that must have a 'void*' type
+//
+//===----------------------------------------------------------------------===//
+#ifndef LLVM_CLANG_SCALABLESTATICANALYSIS_ANALYSES_OPERATORNEWDELETE_OPERATORNEWDELETEPOINTERS_H
+#define LLVM_CLANG_SCALABLESTATICANALYSIS_ANALYSES_OPERATORNEWDELETE_OPERATORNEWDELETEPOINTERS_H
+
+#include "clang/ScalableStaticAnalysis/Core/Model/EntityId.h"
+#include "clang/ScalableStaticAnalysis/Core/Model/SummaryName.h"
+#include "clang/ScalableStaticAnalysis/Core/TUSummary/EntitySummary.h"
+#include "llvm/ADT/StringRef.h"
+#include <set>
+
+namespace clang::ssaf {
+
+/// \brief Collects specific pointer entities related to operator new and delete overloads within a contributor.
----------------
steakhal wrote:

I think this line now breaks the 80 char limit rule.
I figured clang-format should have break this line.

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


More information about the cfe-commits mailing list