[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------------
# | [1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Analysis\Scalable\call-graph.cpp:13:15: [0m[0;1;31merror: [0m[1mCHECK-DAG: expected string not found in input
[0m# | [1m[0m// CHECK-DAG: "pretty_name": "caller()",
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1mZ:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json:7:21: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0m "entity_summary": {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1mZ:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json:14:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0m "pretty_name": "polymorphic(Base &)",
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Analysis\Scalable\call-graph.cpp:23:15: [0m[0;1;31merror: [0m[1mCHECK-DAG: expected string not found in input
[0m# | [1m[0m// CHECK-DAG: "pretty_name": "polymorphic(Base &)",
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1mZ:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json:24:21: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0m "entity_summary": {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1mZ:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Analysis\Scalable\Output\call-graph.cpp.tmp.summary.json:35:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0m "pretty_name": "caller()",
# | [0;1;32m ^
[0m# | [0;1;32m[0m
# | 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:
# | <<<<<<
# | [1m[0m[0;1;30m 1: [0m[1m[0;1;46m{ [0m
# | [0;1;30m 2: [0m[1m[0;1;46m "data": [ [0m
# | [0;1;30m 3: [0m[1m[0;1;46m { [0m
# | [0;1;30m 4: [0m[1m[0;1;46m "summary_data": [ [0m
# | [0;1;30m 5: [0m[1m[0;1;46m { [0m
# | [0;1;30m 6: [0m[1m[0;1;46m "entity_id": 1, [0m
# | [0;1;30m 7: [0m[1m[0;1;46m[0m "entity_summary": {[0;1;46m [0m
...
```
</details>
https://github.com/llvm/llvm-project/pull/189681
More information about the llvm-commits
mailing list