[clang] [clang][ssaf] Add `JSONFormat` support for `TUSummaryEncoding` (PR #183401)
Aviral Goel via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 27 09:12:27 PST 2026
================
@@ -0,0 +1,406 @@
+//===- TUSummaryEncoding.cpp --------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "JSONFormatImpl.h"
+
+#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h"
+#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h"
+
+namespace clang::ssaf {
+
+//----------------------------------------------------------------------------
+// JSONEntitySummaryEncoding
+//----------------------------------------------------------------------------
+
+namespace {
+
+class JSONEntitySummaryEncoding : public EntitySummaryEncoding {
+public:
+ explicit JSONEntitySummaryEncoding(Value Data) : Data(std::move(Data)) {}
+
+ void
+ patch(const std::map<EntityId, EntityId> &EntityResolutionTable) override {
+ llvm_unreachable("not implemented");
+ }
----------------
aviralg wrote:
I should have added an explanatory comment her about this. The plan is to implement patching support in a separate PR to keep this PR small. I expect a PR for patching to be ready on Tuesday. Anyways, I replaced this with a fatal error.
https://github.com/llvm/llvm-project/pull/183401
More information about the cfe-commits
mailing list