[clang] [llvm] [clang][ssaf] Implement JSON format for CallGraph summary (PR #189681)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 31 08:01:01 PDT 2026
================
@@ -0,0 +1,20 @@
+// RUN: rm -rf %t.summary.json
+// RUN: %clang_cc1 -fsyntax-only %s \
+// RUN: --ssaf-extract-summaries=CallGraph \
+// RUN: --ssaf-tu-summary-file=%t.summary.json
+
+// Check that the JSON validation passes.
+// TODO: Enable the next line once the LinkageTable is populated.
+// R U N: clang-ssaf-format --type=tu %t.summary.json
----------------
steakhal wrote:
This would fail because `ssaf-format` would fail because we don't populate the Linkage information of the entities (yet). Once we do that, we can enable this RUN line.
https://github.com/llvm/llvm-project/pull/189681
More information about the cfe-commits
mailing list