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

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 04:55:15 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all".

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

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

```
Step 7 (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 Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json
# executed command: rm -rf 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json'
# note: command had no output on stdout or stderr
# RUN: at line 2
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\23\include -nostdsysteminc -fsyntax-only Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Analysis\Scalable\call-graph.cpp    --ssaf-extract-summaries=CallGraph    --ssaf-tu-summary-file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\23\include' -nostdsysteminc -fsyntax-only 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Analysis\Scalable\call-graph.cpp' --ssaf-extract-summaries=CallGraph '--ssaf-tu-summary-file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json'
# note: command had no output on stdout or stderr
# RUN: at line 5
z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Analysis\Scalable\call-graph.cpp --match-full-lines --input-file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Analysis\Scalable\call-graph.cpp' --match-full-lines '--input-file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json'
# .---command stderr------------
# | Z:\b\llvm-clang-x86_64-sie-win\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()",
# |               ^
# | Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json:7:21: note: scanning from here
# |  "entity_summary": {
# |                     ^
# | Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json:14:2: note: possible intended match here
# |  "pretty_name": "polymorphic(Base &)",
# |  ^
# | Z:\b\llvm-clang-x86_64-sie-win\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 &)",
# |               ^
# | Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json:24:21: note: scanning from here
# |  "entity_summary": {
# |                     ^
# | Z:\b\llvm-clang-x86_64-sie-win\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: Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\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": { 
...

```

</details>

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


More information about the llvm-commits mailing list