github-actions[bot] wrote:

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

* 3253 tests passed
* 33 tests skipped
* 2 tests failed

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

### Clang Tools
<details>
<summary>Clang 
Tools.clang-tidy/checkers/bugprone/misplaced-widening-cast-explicit-only.cpp</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
 -check-suffix=DEFAULT 
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\bugprone\misplaced-widening-cast-explicit-only.cpp
 bugprone-misplaced-widening-cast 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp
 -- -config="{CheckOptions: 
{bugprone-misplaced-widening-cast.CheckImplicitCasts: false}}" --
# executed command: C:/Python312/python.exe 
'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\check_clang_tidy.py'
 -check-suffix=DEFAULT 
'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\bugprone\misplaced-widening-cast-explicit-only.cpp'
 bugprone-misplaced-widening-cast 
'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp'
 -- '-config={CheckOptions: 
{bugprone-misplaced-widening-cast.CheckImplicitCasts: false}}' --
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks', 
'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\bugprone\\Output\\misplaced-widening-cast-explicit-only.cpp.tmp.cpp',
 '-fix', '--checks=-*,bugprone-misplaced-widening-cast', 
'-config={CheckOptions: {bugprone-misplaced-widening-cast.CheckImplicitCasts: 
false}}', '--', '-std=c++11', '-nostdinc++', '-isystem', 
'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\Inputs\\Headers\\std']...
# | ------------------------ clang-tidy output -----------------------
# | 11 warnings generated.
# | 
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:10:7:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    10 |   l = (long)(a * b);
# |       |       ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:15:7:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    15 |   l = (long)(a << 8);
# |       |       ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:19:7:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    19 |   l = static_cast<long>(a * b);
# |       |       ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:28:7:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    28 |   l = (long)(a * b) == c;
# |       |       ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:30:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    30 |   l = c == (long)(a * b);
# |       |            ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:38:13:
 warning: either cast from 'unsigned int' to 'long' is ineffective, or there is 
loss of precision before the conversion [bugprone-misplaced-widening-cast]
# |    38 |   long l2 = (long)(n << 8);
# |       |             ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:45:8:
 warning: either cast from 'unsigned int' to 'long' is ineffective, or there is 
loss of precision before the conversion [bugprone-misplaced-widening-cast]
# |    45 |   func((long)(n << 8));
# |       |        ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:54:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    54 |     return (long)(a * 1000);
# |       |            ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:89:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    89 |   long l = static_cast<long>(x * 2);
# |       |            ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:96:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |    96 |   long l = static_cast<long>(x * 2);
# |       |            ^
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:103:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# |   103 |   long l = static_cast<long>(x * 2);
# |       |            ^
# | 
# | ------------------------------------------------------------------
# | ------------------------------ Fixes -----------------------------
# | 
# | ------------------------------------------------------------------
# | FileCheck 
-input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp.msg
 
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\bugprone\misplaced-widening-cast-explicit-only.cpp
 -check-prefixes=CHECK-MESSAGES-DEFAULT -implicit-check-not={{warning|error}}: 
failed:
# | command line:1:22: error: IMPLICIT-CHECK-NOT: excluded string found in input
# | 
# | -implicit-check-not='{{warning|error}}:'
# | 
# |                      ^
# | 
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp.msg:2:163:
 note: found here
# | 
# | 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:10:7:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast]
# | 
# |                                                                             
                                                                                
      ^~~~~~~~
# | 
# | 
# | 
# | Input file: 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp.msg
# | 
# | Check file: 
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\bugprone\misplaced-widening-cast-explicit-only.cpp
# | 
# | 
# | 
# | -dump-input=help explains the following input dump.
# | 
# | 
# | 
# | Input was:
# | 
# | <<<<<<
# | 
# |             1: 11 warnings generated.
# |  
# | 
# | not:imp1'0    {                          search range start (exclusive)
# | 
# |             2: 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:10:7:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast] 
# | 
# | not:imp1'1                                                                  
                                                                                
                     !~~~~~~~                                                   
                                                                                
        error: no match expected
# | 
# |             3:  10 | l = (long)(a * b); 
# | 
# |             4:  | ^ 
# | 
# |             5: 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:15:7:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast] 
# | 
# |             6:  15 | l = (long)(a << 8); 
# | 
# |             7:  | ^ 
# | 
# |             .
# | 
# |             .
# | 
# |             .
# | 
# |            21:  45 | func((long)(n << 8)); 
# | 
# |            22:  | ^ 
# | 
# |            23: 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:54:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast] 
# | 
# |            24:  54 | return (long)(a * 1000); 
# | 
# |            25:  | ^ 
# | 
# |            26: 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:89:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast] 
# | 
# | not:imp1'2                                                                  
                                                                                
              }                                                                 
                                                                                
         search range end (exclusive)
# | 
# |            27:  89 | long l = static_cast<long>(x * 2); 
# | 
# |            28:  | ^ 
# | 
# |            29: 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:96:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast] 
# | 
# |            30:  96 | long l = static_cast<long>(x * 2); 
# | 
# |            31:  | ^ 
# | 
# |            32: 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\bugprone\Output\misplaced-widening-cast-explicit-only.cpp.tmp.cpp:103:12:
 warning: either cast from 'int' to 'long' is ineffective, or there is loss of 
precision before the conversion [bugprone-misplaced-widening-cast] 
# | 
# |            33:  103 | long l = static_cast<long>(x * 2); 
# | 
# |            34:  | ^ 
# | 
# | >>>>>>
# | 
# | 
# `-----------------------------
# .---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 558, in <module>
# |     main()
# |   File 
"C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py",
 line 554, 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 433, in run
# |     self.check_messages(main_output)
# |   File 
"C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py",
 line 358, in check_messages
# |     try_run(
# |   File 
"C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py",
 line 64, 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 '['FileCheck', 
'-input-file=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\bugprone\\Output\\misplaced-widening-cast-explicit-only.cpp.tmp.cpp.msg',
 
'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\bugprone\\misplaced-widening-cast-explicit-only.cpp',
 '-check-prefixes=CHECK-MESSAGES-DEFAULT', 
'-implicit-check-not={{warning|error}}:']' returned non-zero exit status 1.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang Tools.clang-tidy/infrastructure/alphabetical-order.test</summary>

```
Exit Code: 3

Command Output (stdout):
--
# RUN: at line 1
C:/Python312/python.exe 
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py
 -o 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\alphabetical-order.test.tmp.clang-tidy-checks-list.rst
# executed command: C:/Python312/python.exe 
'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py'
 -o 
'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\alphabetical-order.test.tmp.clang-tidy-checks-list.rst'
# note: command had no output on stdout or stderr
# RUN: at line 2
diff --strip-trailing-cr 
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/../../../docs/clang-tidy/checks/list.rst
 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\alphabetical-order.test.tmp.clang-tidy-checks-list.rst
# executed command: diff --strip-trailing-cr 
'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/../../../docs/clang-tidy/checks/list.rst'
 
'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\alphabetical-order.test.tmp.clang-tidy-checks-list.rst'
# note: command had no output on stdout or stderr
# RUN: at line 4
C:/Python312/python.exe 
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py
 -o 
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\alphabetical-order.test.tmp.ReleaseNotes.rst
# executed command: C:/Python312/python.exe 
'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure/../../../clang-tidy/tool/check_alphabetical_order.py'
 -o 
'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\infrastructure\Output\alphabetical-order.test.tmp.ReleaseNotes.rst'
# .---command stderr------------
# | Error: Duplicate entries in 'Changes in existing checks'.
# | 
# | Please merge these entries into a single bullet point.
# | 
# | -- Duplicate: - Improved :doc:`bugprone-misplaced-widening-cast
# | 
# | - At line 415:
# | - Improved :doc:`bugprone-misplaced-widening-cast
# |   <clang-tidy/checks/bugprone/misplaced-widening-cast>` check by fixing a 
false
# |   positive on bit field assignments when the `CheckImplicitCasts` option is
# |   enabled. The check now uses the actual bit field width instead of the
# |   declared type to determine if widening occurs.
# |   
# | - At line 421:
# | - Improved :doc:`bugprone-misplaced-widening-cast
# |   <clang-tidy/checks/bugprone/misplaced-widening-cast>` check by adding the
# |   :option:`IgnoreConstexprOverflowProven` option to suppress false positives
# |   when the calculation operand is a ``constexpr`` variable whose 
compile-time
# |   value provably fits inside the narrower type without overflow. The check
# |   still warns when the operand is a non-``constexpr`` ``const``, or when the
# |   ``constexpr`` value is negative or overflows.
# | 
# `-----------------------------
# error: command failed with exit status: 3

--

```
</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/208162
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to