[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:03 PDT 2026
================
@@ -1,9 +1,10 @@
// Test clang-ssaf-format --list output without any loaded plugins.
// RUN: clang-ssaf-format --list \
-// RUN: | FileCheck %s
+// RUN: | FileCheck %s --match-full-lines
// CHECK: Registered serialization formats:
// CHECK-EMPTY:
-// CHECK-NEXT: 1. json - JSON serialization format
-// CHECK-NEXT: Analyses: (none)
+// CHECK-DAG: [[NthFormat:[0-9]+]]. json - JSON serialization format
+// CHECK-DAG: Analyses:
+// CHECK-DAG: [[NthFormat]].[[MthSummary:[0-9]+]]. CallGraph - JSON Format info for CallGraph summary
----------------
steakhal wrote:
The pattern matching here is for accounting for downstream added new formats and analyses. Because I suspect those might get interleaved with the upstream-supported formats and analyses. Hence the `DAG`matching with patterns, so that at least the right parts match for the right format.
https://github.com/llvm/llvm-project/pull/189681
More information about the cfe-commits
mailing list