[clang] [llvm] [clang][ssaf] Implement JSON format for CallGraph summary (PR #189681)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 2 06:49:43 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-debian-cpp20` running on `clang-debian-cpp20` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/24831

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Analysis/Scalable/call-graph.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json
# executed command: rm -rf /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json
# RUN: at line 2
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/23/include -nostdsysteminc -fsyntax-only /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/Analysis/Scalable/call-graph.cpp    --ssaf-extract-summaries=CallGraph    --ssaf-tu-summary-file=/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json
# executed command: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/23/include -nostdsysteminc -fsyntax-only /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/Analysis/Scalable/call-graph.cpp --ssaf-extract-summaries=CallGraph --ssaf-tu-summary-file=/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json
# RUN: at line 5
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/Analysis/Scalable/call-graph.cpp --match-full-lines --input-file=/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json
# executed command: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/Analysis/Scalable/call-graph.cpp --match-full-lines --input-file=/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json
# .---command stderr------------
# | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/Analysis/Scalable/call-graph.cpp:13:15: error: CHECK-DAG: expected string not found in input
# | // CHECK-DAG: "pretty_name": "caller()",
# |               ^
# | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json:7:21: note: scanning from here
# |  "entity_summary": {
# |                     ^
# | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json:14:2: note: possible intended match here
# |  "pretty_name": "polymorphic(Base &)",
# |  ^
# | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/Analysis/Scalable/call-graph.cpp:23:15: error: CHECK-DAG: expected string not found in input
# | // CHECK-DAG: "pretty_name": "polymorphic(Base &)",
# |               ^
# | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json:24:21: note: scanning from here
# |  "entity_summary": {
# |                     ^
# | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json:35:2: note: possible intended match here
# |  "pretty_name": "caller()",
# |  ^
# | 
# | Input file: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/test/Analysis/Scalable/Output/call-graph.cpp.tmp.summary.json
# | Check file: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/Analysis/Scalable/call-graph.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: { 
# |           2:  "data": [ 
# |           3:  { 
# |           4:  "summary_data": [ 
# |           5:  { 
# |           6:  "entity_id": 1, 
# |           7:  "entity_summary": { 
# | dag:13'0                         X error: no match found
# |           8:  "def": { 
...

```

</details>

https://github.com/llvm/llvm-project/pull/189681


More information about the cfe-commits mailing list