[llvm-branch-commits] [clang] [SSAF][WPA] Add no-op PointerFlow and UnsafeBufferUsage analysis (PR #193089)
Jan Korous via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Apr 27 15:52:43 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, ...], ... ]
----------------
jkorous-apple wrote:
Thank you! Those names seem more clear.
I am just surprised that `lhs` became `src` and `rhs` became `dest`.
Unless we are fixing a bug in the doxygen it probably should be the other way around.
https://github.com/llvm/llvm-project/pull/193089
More information about the llvm-branch-commits
mailing list