[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: Linux-->
# :penguin: Linux x64 Test Results
* 3070 tests passed
* 7 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
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/cuda-basic.cu modernize-use-nullptr /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/cuda-basic.cu.tmp -- -- --cuda-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA -nocudalib -nocudainc -I /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/cuda-basic.cu modernize-use-nullptr /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/cuda-basic.cu.tmp -- -- --cuda-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA -nocudalib -nocudainc -I /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks', '/home/gha/actions-runner/_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=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA', '-nocudalib', '-nocudainc', '-I', '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA', '-std=c++11', '-nostdinc++']...
# | clang-tidy --experimental-custom-checks /home/gha/actions-runner/_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=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA -nocudalib -nocudainc -I /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA -std=c++11 -nostdinc++ failed:
# | clang-tidy: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Tooling/Tooling.cpp:111: bool ignoreExtraCC1Commands(const driver::Compilation *): Assertion `Actions.size() > 1' failed.
# | 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 /home/gha/actions-runner/_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=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA -nocudalib -nocudainc -I /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA -std=c++11 -nostdinc++
# | #0 0x0000000003f42508 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:842:13
# | #1 0x0000000003f3fb05 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x0000000003f435c1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:429:38
# | #3 0x000078ea36fb2330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x000078ea3700bb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x000078ea36fb227e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x000078ea36f958ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x000078ea36f9581b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x000078ea36fa8517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x0000000003fd19d4 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-tidy+0x3fd19d4)
# | #10 0x0000000003fd2b63 clang::tooling::ToolInvocation::run() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Tooling/Tooling.cpp:419:8
# | #11 0x0000000003fd6a64 clang::tooling::ClangTool::run(clang::tooling::ToolAction*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Tooling/Tooling.cpp:633:11
# | #12 0x0000000004042b9d clang::tidy::runClangTidy(clang::tidy::ClangTidyContext&, clang::tooling::CompilationDatabase const&, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>, bool, bool, llvm::StringRef, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/ClangTidy.cpp:0:8
# | #13 0x0000000003efaae9 clang::tidy::clangTidyMain(int, char const**) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp:746:7
# | #14 0x000078ea36f971ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #15 0x000078ea36f9728b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #16 0x0000000003ef56a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-tidy+0x3ef56a5)
# |
# `-----------------------------
# .---command stderr------------
# | Traceback (most recent call last):
# | File "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 413, in <module>
# | main()
# | File "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 409, in main
# | CheckRunner(args, extra_args).run()
# | File "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 307, in run
# | clang_tidy_output = self.run_clang_tidy()
# | ^^^^^^^^^^^^^^^^^^^^^
# | File "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 232, in run_clang_tidy
# | clang_tidy_output = try_run(args)
# | ^^^^^^^^^^^^^
# | File "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py", line 63, in try_run
# | process_output = subprocess.check_output(args, stderr=subprocess.STDOUT).decode(
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
# | return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# | File "/usr/lib/python3.12/subprocess.py", line 571, in run
# | raise CalledProcessError(retcode, process.args,
# | subprocess.CalledProcessError: Command '['clang-tidy', '--experimental-custom-checks', '/home/gha/actions-runner/_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=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA', '-nocudalib', '-nocudainc', '-I', '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/Inputs/CUDA', '-std=c++11', '-nostdinc++']' died with <Signals.SIGABRT: 6>.
# `-----------------------------
# 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