[clang-tools-extra] [clang-tidy] Add documentation and smoke test for CUDA (PR #173699)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 28 02:27:56 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3009 tests passed
* 29 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang Tools
<details>
<summary>Clang Tools.clang-tidy/infrastructure/cuda-basic.cu</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\cuda-basic.cu modernize-use-nullptr C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\cuda-basic.cu.tmp -- -- --cuda-path=C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/Inputs/CUDA -nocudalib -nocudainc -I C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/Inputs/CUDA
# executed command: C:/Python312/python.exe 'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py' 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\cuda-basic.cu' modernize-use-nullptr 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\cuda-basic.cu.tmp' -- -- '--cuda-path=C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/Inputs/CUDA' -nocudalib -nocudainc -I 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/Inputs/CUDA'
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks', 'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\infrastructure\\Output\\cuda-basic.cu.tmp.cu', '-fix', '--checks=-*,modernize-use-nullptr', '--config={}', '--', '--cuda-path=C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\infrastructure/Inputs/CUDA', '-nocudalib', '-nocudainc', '-I', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\infrastructure/Inputs/CUDA', '-std=c++11', '-nostdinc++']...
# | clang-tidy --experimental-custom-checks C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\cuda-basic.cu.tmp.cu -fix --checks=-*,modernize-use-nullptr --config={} -- --cuda-path=C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/Inputs/CUDA -nocudalib -nocudainc -I C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/Inputs/CUDA -std=c++11 -nostdinc++ failed:
# | Assertion failed: Actions.size() > 1, file C:\_work\llvm-project\llvm-project\clang\lib\Tooling\Tooling.cpp, line 111
# |
# | 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: clang-tidy --experimental-custom-checks C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\infrastructure\\Output\\cuda-basic.cu.tmp.cu -fix --checks=-*,modernize-use-nullptr --config={} -- --cuda-path=C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\infrastructure/Inputs/CUDA -nocudalib -nocudainc -I C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\infrastructure/Inputs/CUDA -std=c++11 -nostdinc++
# |
# | Exception Code: 0xC000001D
# |
# | #0 0x00007ff614770136 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x320136)
# |
# | #1 0x00007ffd91e6bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |
# | #2 0x00007ffd91e6cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |
# | #3 0x00007ffd91e6e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |
# | #4 0x00007ffd91e6e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |
# | #5 0x00007ff61481801d (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3c801d)
# |
# | #6 0x00007ff6148185a6 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3c85a6)
# |
# | #7 0x00007ff61481c619 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3cc619)
# |
# | #8 0x00007ff6144c1a90 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x71a90)
# |
# | #9 0x00007ff6144568a4 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x68a4)
# |
# | #10 0x00007ff6178f2b44 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x34a2b44)
# |
# | #11 0x00007ffd94c64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# |
# | #12 0x00007ffda0e3edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# |
# |
# `-----------------------------
# .---command stderr------------
# | Traceback (most recent call last):
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 413, in <module>
# | main()
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 409, in main
# | CheckRunner(args, extra_args).run()
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 307, in run
# | clang_tidy_output = self.run_clang_tidy()
# | ^^^^^^^^^^^^^^^^^^^^^
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 232, in run_clang_tidy
# | clang_tidy_output = try_run(args)
# | ^^^^^^^^^^^^^
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 63, in try_run
# | process_output = subprocess.check_output(args, stderr=subprocess.STDOUT).decode(
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "c:\python312\Lib\subprocess.py", line 466, in check_output
# | return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "c:\python312\Lib\subprocess.py", line 571, in run
# | raise CalledProcessError(retcode, process.args,
# | subprocess.CalledProcessError: Command '['clang-tidy', '--experimental-custom-checks', 'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\infrastructure\\Output\\cuda-basic.cu.tmp.cu', '-fix', '--checks=-*,modernize-use-nullptr', '--config={}', '--', '--cuda-path=C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\infrastructure/Inputs/CUDA', '-nocudalib', '-nocudainc', '-I', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\infrastructure/Inputs/CUDA', '-std=c++11', '-nostdinc++']' returned non-zero exit status 3221225501.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</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/173699
More information about the cfe-commits
mailing list