[clang-tools-extra] [clang-tidy] Fix performance-trivially-destructible with C++20 modules (PR #178471)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 28 09:50:29 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 3094 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/checkers/performance/trivially-destructible-module.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp && mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible-module.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible-module.cpp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 7
clang++ -std=c++20 -x c++-module --precompile /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/mymodule.cppm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/mymodule.pcm -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp -fPIC
# executed command: clang++ -std=c++20 -x c++-module --precompile /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/mymodule.cppm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/mymodule.pcm -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp -fPIC
# note: command had no output on stdout or stderr
# RUN: at line 12
clang-tidy /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/main.cpp -checks='-*,performance-trivially-destructible' -- -std=c++20 -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp -fmodule-file=mymodule=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/mymodule.pcm 2>&1 | FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible-module.cpp --allow-empty
# executed command: clang-tidy /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/main.cpp '-checks=-*,performance-trivially-destructible' -- -std=c++20 -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp -fmodule-file=mymodule=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/performance/Output/trivially-destructible-module.cpp.tmp/mymodule.pcm
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/trivially-destructible-module.cpp --allow-empty
# note: command had no output on stdout or stderr
--
```
</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/178471
More information about the cfe-commits
mailing list