github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 3235 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/modernize/use-static-lambda.cpp</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
-std=c++23-or-later
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-static-lambda.cpp
modernize-use-static-lambda
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp
# 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
-std=c++23-or-later
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-static-lambda.cpp
modernize-use-static-lambda
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp
# .---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/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp',
'-fix', '--checks=-*,modernize-use-static-lambda', '--config={}', '--',
'-std=c++23', '-nostdinc++', '-isystem',
'/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/checkers/Inputs/Headers/std']...
# | ------------------------ clang-tidy output -----------------------
# | 5 warnings generated.
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:7:13:
warning: lambda with empty capture list can be marked static
[modernize-use-static-lambda]
# | 7 | auto f1 = [](int x) { return x * x; };
# | | ^
# | | static
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:7:22:
note: FIX-IT applied suggested code changes
# | 7 | auto f1 = [](int x) { return x * x; };
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:12:13:
warning: lambda with empty capture list can be marked 'static'
[modernize-use-static-lambda]
# | 12 | auto f2 = [] { return 42; };
# | | ^
# | | () static
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:12:15:
note: FIX-IT applied suggested code changes
# | 12 | auto f2 = [] { return 42; };
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:17:13:
warning: lambda with empty capture list can be marked static
[modernize-use-static-lambda]
# | 17 | auto f3 = [](int x) -> int { return x; };
# | | ^
# | | static
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:17:22:
note: FIX-IT applied suggested code changes
# | 17 | auto f3 = [](int x) -> int { return x; };
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:22:13:
warning: lambda with empty capture list can be marked static
[modernize-use-static-lambda]
# | 22 | auto f4 = []() noexcept { return 1; };
# | | ^
# | | static
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:22:17:
note: FIX-IT applied suggested code changes
# | 22 | auto f4 = []() noexcept { return 1; };
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:76:12:
warning: lambda with empty capture list can be marked static
[modernize-use-static-lambda]
# | 76 | auto f = []() constexpr { return 42; };
# | | ^
# | | static
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:76:16:
note: FIX-IT applied suggested code changes
# | clang-tidy applied 5 of 5 suggested fixes.
# | 76 | auto f = []() constexpr { return 42; };
# | | ^
# |
# | ------------------------------------------------------------------
# | diff -u
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.orig
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp
failed:
# | ---
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.orig
2026-05-11 07:33:46.899350601 +0000
# | +++
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp
2026-05-11 07:33:46.913350600 +0000
# | @@ -4,22 +4,22 @@
# |
# | void basicCases() {
# | // Lambda with explicit params, no capture.
# | - auto f1 = [](int x) { return x * x; };
# | + auto f1 = [](int x) static { return x * x; };
# | //
# | //
# |
# | // Lambda with no params, no capture.
# | - auto f2 = [] { return 42; };
# | + auto f2 = []() static { return 42; };
# | //
# | //
# |
# | // Lambda with trailing return type.
# | - auto f3 = [](int x) -> int { return x; };
# | + auto f3 = [](int x) static -> int { return x; };
# | //
# | //
# |
# | // Lambda with noexcept.
# | - auto f4 = []() noexcept { return 1; };
# | + auto f4 = []() static noexcept { return 1; };
# | //
# | //
# | }
# | @@ -73,7 +73,7 @@
# | // constexpr lambda: warning (static + constexpr is valid in C++23)
# |
# | void constexprLambda() {
# | - auto f = []() constexpr { return 42; };
# | + auto f = []() static constexpr { return 42; };
# | //
# | //
# | }
# |
# | ------------------------------ Fixes -----------------------------
# | ---
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.orig
2026-05-11 07:33:46.899350601 +0000
# | +++
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp
2026-05-11 07:33:46.913350600 +0000
# | @@ -4,22 +4,22 @@
# |
# | void basicCases() {
# | // Lambda with explicit params, no capture.
# | - auto f1 = [](int x) { return x * x; };
# | + auto f1 = [](int x) static { return x * x; };
# | //
# | //
# |
# | // Lambda with no params, no capture.
# | - auto f2 = [] { return 42; };
# | + auto f2 = []() static { return 42; };
# | //
# | //
# |
# | // Lambda with trailing return type.
# | - auto f3 = [](int x) -> int { return x; };
# | + auto f3 = [](int x) static -> int { return x; };
# | //
# | //
# |
# | // Lambda with noexcept.
# | - auto f4 = []() noexcept { return 1; };
# | + auto f4 = []() static noexcept { return 1; };
# | //
# | //
# | }
# | @@ -73,7 +73,7 @@
# | // constexpr lambda: warning (static + constexpr is valid in C++23)
# |
# | void constexprLambda() {
# | - auto f = []() constexpr { return 42; };
# | + auto f = []() static constexpr { return 42; };
# | //
# | //
# | }
# |
# | ------------------------------------------------------------------
# | FileCheck
-input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp.msg
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-static-lambda.cpp
-check-prefixes=CHECK-MESSAGES -implicit-check-not={{warning|error}}: failed:
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-static-lambda.cpp:8:21:
error: CHECK-MESSAGES: expected string not found in input
# | // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: lambda with empty capture
list can be marked 'static' [modernize-use-static-lambda]
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp.msg:1:1:
note: scanning from here
# | 5 warnings generated.
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp.msg:1:1:
note: with "@LINE-1" equal to "7"
# | 5 warnings generated.
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp.msg:9:161:
note: possible intended match here
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:12:13:
warning: lambda with empty capture list can be marked 'static'
[modernize-use-static-lambda]
# |
^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp.msg
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-static-lambda.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: 5 warnings generated.
# | check:8'0 X~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:8'1 with "@LINE-1" equal to "7"
# | 2:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:7:13:
warning: lambda with empty capture list can be marked static
[modernize-use-static-lambda]
# | check:8'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3: 7 | auto f1 = [](int x) { return x * x; };
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: | ^
# | check:8'0 ~~~~~
# | 5: | static
# | check:8'0 ~~~~~~~~~~
# | 6:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:7:22:
note: FIX-IT applied suggested code changes
# | check:8'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 7: 7 | auto f1 = [](int x) { return x * x; };
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 8: | ^
# | check:8'0 ~~~~~
# | 9:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:12:13:
warning: lambda with empty capture list can be marked 'static'
[modernize-use-static-lambda]
# | check:8'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:8'2
?
possible intended match
# | 10: 12 | auto f2 = [] { return 42; };
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 11: | ^
# | check:8'0 ~~~~~
# | 12: | () static
# | check:8'0 ~~~~~~~~~~~~~
# | 13:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp:12:15:
note: FIX-IT applied suggested code changes
# | check:8'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14: 12 | auto f2 = [] { return 42; };
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# |
# `-----------------------------
# .---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 558, 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 554, 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 433, in run
# | self.check_messages(main_output)
# | File
"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py",
line 358, in check_messages
# | try_run(
# | File
"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/../test/clang-tidy/check_clang_tidy.py",
line 64, 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 '['FileCheck',
'-input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/modernize/Output/use-static-lambda.cpp.tmp.cpp.msg',
'/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-static-lambda.cpp',
'-check-prefixes=CHECK-MESSAGES', '-implicit-check-not={{warning|error}}:']'
returned non-zero exit status 1.
# `-----------------------------
# 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/196893
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits