[llvm-branch-commits] [clang] [SSAF][WPA] Add no-op PointerFlow and UnsafeBufferUsage analysis (PR #193089)
Ziqing Luo via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Apr 24 17:49:41 PDT 2026
================
@@ -0,0 +1,35 @@
+//===- PointerFlowFormat.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
+//
+//===----------------------------------------------------------------------===//
+//
+// JSON serialization helpers for EdgeSet (PointerFlow edge maps).
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_ANALYSES_POINTERFLOW_POINTERFLOWFORMAT_H
+#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_ANALYSES_POINTERFLOW_POINTERFLOWFORMAT_H
+
+#include "clang/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlow.h"
+#include "clang/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat.h"
+#include "llvm/ADT/iterator_range.h"
+
+namespace clang::ssaf {
+
+/// Serialize an EdgeSet as an array of arrays of EntityPointerLevels:
+/// [ [lhs, rhs, rhs, ...], [lhs, rhs, rhs, ...], ... ]
----------------
ziqingluo-90 wrote:
changed it to
```
/// Serialize an EdgeSet
/// {(src1, dest1), (src1, dest2), (src2, dest3), (src2, dest4), ...}
/// to an array of arrays of EntityPointerLevels:
/// [ [src1, dest1, dest2, ...], [src2, dest3, dest4, ...], ... ]
```
https://github.com/llvm/llvm-project/pull/193089
More information about the llvm-branch-commits
mailing list