[clang] [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (PR #171238)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 8 17:02:14 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 51413 tests passed
* 852 tests skipped
* 4 tests failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.ClangScanDeps/link-libraries.c</summary>

```
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 3
mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/Inputs
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/Inputs'
# note: command had no output on stdout or stderr
# RUN: at line 4
cp -R C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps/Inputs/frameworks C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/Inputs/frameworks
# executed command: cp -R 'C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps/Inputs/frameworks' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/Inputs/frameworks'
# note: command had no output on stdout or stderr
# RUN: at line 5
split-file C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\link-libraries.c C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\link-libraries.c' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 34
sed "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/link-libraries.c.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/cdb.json.template > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/cdb.json
# executed command: sed 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/link-libraries.c.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/cdb.json.template'
# note: command had no output on stdout or stderr
# RUN: at line 35
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/cdb.json -format experimental-full -module-names=root > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/result.json
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\link-libraries.c.tmp/cdb.json' -format experimental-full -module-names=root
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-scan-deps.exe -compilation-database C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\ClangScanDeps\\Output\\link-libraries.c.tmp/cdb.json -format experimental-full -module-names=root
# | Exception Code: 0xC0000005
# |  #0 0x00007ff68a116b2f (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x296b2f)
# |  #1 0x00007ff689f2b464 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0xab464)
# |  #2 0x00007ff68a07e1b4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1fe1b4)
# |  #3 0x00007ff68a07d8dc (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1fd8dc)
# |  #4 0x00007ff689e84b1a (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x4b1a)
# |  #5 0x00007ff689e82dd6 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2dd6)
# |  #6 0x00007ff689eaae77 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2ae77)
# |  #7 0x00007ff68be0cdb4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1f8cdb4)
# |  #8 0x00007ffa89204cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# |  #9 0x00007ffa95b1edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc0000005

--

```
</details>
<details>
<summary>Clang.ClangScanDeps/modules-full-by-mod-name.c</summary>

```
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\modules-full-by-mod-name.c C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\modules-full-by-mod-name.c' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 27
sed "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/modules-full-by-mod-name.c.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp/cdb.json.template > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp/cdb.json
# executed command: sed 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/modules-full-by-mod-name.c.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp/cdb.json.template'
# note: command had no output on stdout or stderr
# RUN: at line 28
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp/cdb.json -format experimental-full -module-names=root > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp/result.json
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mod-name.c.tmp/cdb.json' -format experimental-full -module-names=root
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-scan-deps.exe -compilation-database C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\ClangScanDeps\\Output\\modules-full-by-mod-name.c.tmp/cdb.json -format experimental-full -module-names=root
# | Exception Code: 0xC0000005
# |  #0 0x00007ff68a116b2f (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x296b2f)
# |  #1 0x00007ff689f2b464 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0xab464)
# |  #2 0x00007ff68a07e1b4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1fe1b4)
# |  #3 0x00007ff68a07d8dc (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1fd8dc)
# |  #4 0x00007ff689e84b1a (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x4b1a)
# |  #5 0x00007ff689e82dd6 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2dd6)
# |  #6 0x00007ff689eaae77 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2ae77)
# |  #7 0x00007ff68be0cdb4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1f8cdb4)
# |  #8 0x00007ffa89204cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# |  #9 0x00007ffa95b1edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc0000005

--

```
</details>
<details>
<summary>Clang.ClangScanDeps/modules-full-by-mult-mod-names.c</summary>

```
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\modules-full-by-mult-mod-names.c C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\modules-full-by-mult-mod-names.c' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 32
sed "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/modules-full-by-mult-mod-names.c.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp/cdb.json.template > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp/cdb.json
# executed command: sed 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/modules-full-by-mult-mod-names.c.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp/cdb.json.template'
# note: command had no output on stdout or stderr
# RUN: at line 33
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp/cdb.json -format experimental-full -module-names=root,root1,direct > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp/result.json
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\modules-full-by-mult-mod-names.c.tmp/cdb.json' -format experimental-full -module-names=root,root1,direct
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-scan-deps.exe -compilation-database C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\ClangScanDeps\\Output\\modules-full-by-mult-mod-names.c.tmp/cdb.json -format experimental-full -module-names=root,root1,direct
# | Exception Code: 0xC0000005
# | #0 0x00007ff68a116b2f (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x296b2f)
# | #1 0x00007ff689f2b464 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0xab464)
# | #2 0x00007ff68a07e1b4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1fe1b4)
# | #3 0x00007ff689e84d63 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x4d63)
# | #4 0x00007ff689e82dd6 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2dd6)
# | #5 0x00007ff689eaae77 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2ae77)
# | #6 0x00007ff68be0cdb4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1f8cdb4)
# | #7 0x00007ffa89204cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #8 0x00007ffa95b1edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc0000005

--

```
</details>
<details>
<summary>Clang.Modules/transitive-system.test</summary>

```
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
split-file C:\_work\llvm-project\llvm-project\clang\test\Modules\transitive-system.test C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\Modules\transitive-system.test' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 4
sed "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/Modules/Output/transitive-system.test.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp/cdb.json.template > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp/cdb.json
# executed command: sed 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/Modules/Output/transitive-system.test.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp/cdb.json.template'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp/cdb.json -format experimental-full -module-names=direct > C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp/result1.json
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\transitive-system.test.tmp/cdb.json' -format experimental-full -module-names=direct
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-scan-deps.exe -compilation-database C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Modules\\Output\\transitive-system.test.tmp/cdb.json -format experimental-full -module-names=direct
# | Exception Code: 0xC0000005
# |  #0 0x00007ff68a116b2f (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x296b2f)
# |  #1 0x00007ff689f2b464 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0xab464)
# |  #2 0x00007ff68a07e1b4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1fe1b4)
# |  #3 0x00007ff68a07d8dc (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1fd8dc)
# |  #4 0x00007ff689e84b1a (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x4b1a)
# |  #5 0x00007ff689e82dd6 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2dd6)
# |  #6 0x00007ff689eaae77 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x2ae77)
# |  #7 0x00007ff68be0cdb4 (c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe+0x1f8cdb4)
# |  #8 0x00007ffa89204cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# |  #9 0x00007ffa95b1edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc0000005

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list