github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 52857 tests passed
* 987 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/readability/uppercase-literal-suffix-floating-point.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
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\uppercase-literal-suffix-floating-point.cpp
readability-uppercase-literal-suffix
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp
-- -- -target x86_64-pc-linux-gnu -I
C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\checkers\Inputs\Headers
# 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\checkers\readability\uppercase-literal-suffix-floating-point.cpp'
readability-uppercase-literal-suffix
'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp'
-- -- -target x86_64-pc-linux-gnu -I
'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\checkers\Inputs\Headers'
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks',
'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\readability\\Output\\uppercase-literal-suffix-floating-point.cpp.tmp.cpp',
'-fix', '--checks=-*,readability-uppercase-literal-suffix', '--config={}',
'--', '-target', 'x86_64-pc-linux-gnu', '-I',
'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\\clang-tidy\\checkers\\Inputs\\Headers',
'-std=c++11', '-nostdinc++']...
# | ------------------------ clang-tidy output -----------------------
# | 12 warnings generated.
# |
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:16:30:
warning: floating point literal has suffix 'f', which is not uppercase
[readability-uppercase-literal-suffix]
# | 16 | static constexpr auto v2 = 1.f;
# | | ^ ~
# | | F
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:16:32:
note: FIX-IT applied suggested code changes
# | 16 | static constexpr auto v2 = 1.f;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:22:30:
warning: floating point literal has suffix 'f', which is not uppercase
[readability-uppercase-literal-suffix]
# | 22 | static constexpr auto v3 = 1.e0f;
# | | ^ ~
# | | F
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:22:34:
note: FIX-IT applied suggested code changes
# | 22 | static constexpr auto v3 = 1.e0f;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:38:30:
warning: floating point literal has suffix 'l', which is not uppercase
[readability-uppercase-literal-suffix]
# | 38 | static constexpr auto v6 = 1.l;
# | | ^ ~
# | | L
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:38:32:
note: FIX-IT applied suggested code changes
# | 38 | static constexpr auto v6 = 1.l;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:44:30:
warning: floating point literal has suffix 'l', which is not uppercase
[readability-uppercase-literal-suffix]
# | 44 | static constexpr auto v7 = 1.e0l;
# | | ^ ~
# | | L
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:44:34:
note: FIX-IT applied suggested code changes
# | 44 | static constexpr auto v7 = 1.e0l;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:60:31:
warning: floating point literal has suffix 'q', which is not uppercase
[readability-uppercase-literal-suffix]
# | 60 | static constexpr auto v10 = 1.q;
# | | ^ ~
# | | Q
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:60:33:
note: FIX-IT applied suggested code changes
# | 60 | static constexpr auto v10 = 1.q;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:66:31:
warning: floating point literal has suffix 'q', which is not uppercase
[readability-uppercase-literal-suffix]
# | 66 | static constexpr auto v11 = 1.e0q;
# | | ^ ~
# | | Q
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:66:35:
note: FIX-IT applied suggested code changes
# | 66 | static constexpr auto v11 = 1.e0q;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:84:31:
warning: floating point literal has suffix 'i', which is not uppercase
[readability-uppercase-literal-suffix]
# | 84 | static constexpr auto v14 = 1.i;
# | | ^ ~
# | | I
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:84:33:
note: FIX-IT applied suggested code changes
# | 84 | static constexpr auto v14 = 1.i;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:90:31:
warning: floating point literal has suffix 'i', which is not uppercase
[readability-uppercase-literal-suffix]
# | 90 | static constexpr auto v15 = 1.e0i;
# | | ^ ~
# | | I
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:90:35:
note: FIX-IT applied suggested code changes
# | 90 | static constexpr auto v15 = 1.e0i;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:106:31:
warning: floating point literal has suffix 'j', which is not uppercase
[readability-uppercase-literal-suffix]
# | 106 | static constexpr auto v18 = 1.j;
# | | ^ ~
# | | J
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:106:33:
note: FIX-IT applied suggested code changes
# | 106 | static constexpr auto v18 = 1.j;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:112:31:
warning: floating point literal has suffix 'j', which is not uppercase
[readability-uppercase-literal-suffix]
# | 112 | static constexpr auto v19 = 1.e0j;
# | | ^ ~
# | | J
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:112:35:
note: FIX-IT applied suggested code changes
# | 112 | static constexpr auto v19 = 1.e0j;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:129:42:
warning: floating point literal has suffix 'f', which is not uppercase
[readability-uppercase-literal-suffix]
# | 129 | static constexpr auto m0 = PASSTHROUGH(1.f);
# | | ^ ~
# | | F
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:129:44:
note: FIX-IT applied suggested code changes
# | 129 | static constexpr auto m0 = PASSTHROUGH(1.f);
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:138:3:
warning: floating point literal has suffix 'f', which is not uppercase
[readability-uppercase-literal-suffix]
# | 138 | 1.0_f;
# | | ^ ~
# | | F
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:138:7:
note: FIX-IT applied suggested code changes
# | clang-tidy applied 12 of 12 suggested fixes.
# |
# | 138 | 1.0_f;
# | | ^
# |
# | ------------------------------------------------------------------
# | diff -u
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.orig
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp
failed:
# | ---
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.orig
2026-02-28 06:02:23.693048200 +0000
# | +++
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp
2026-02-28 06:02:23.753116700 +0000
# | @@ -13,13 +13,13 @@
# |
# |
# | // Float
# |
# |
# |
# | - static constexpr auto v2 = 1.f;
# |
# | + static constexpr auto v2 = 1.F;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v2), const float>::value, "");
# |
# | static_assert(v2 == 1.0F, "");
# |
# |
# |
# | - static constexpr auto v3 = 1.e0f;
# |
# | + static constexpr auto v3 = 1.e0F;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v3), const float>::value, "");
# |
# | @@ -35,13 +35,13 @@
# |
# |
# | // Long double
# |
# |
# |
# | - static constexpr auto v6 = 1.l;
# |
# | + static constexpr auto v6 = 1.L;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v6), const long double>::value, "");
# |
# | static_assert(v6 == 1., "");
# |
# |
# |
# | - static constexpr auto v7 = 1.e0l;
# |
# | + static constexpr auto v7 = 1.e0L;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v7), const long double>::value, "");
# |
# | @@ -57,13 +57,13 @@
# |
# |
# | // __float128
# |
# |
# |
# | - static constexpr auto v10 = 1.q;
# |
# | + static constexpr auto v10 = 1.Q;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v10), const __float128>::value, "");
# |
# | static_assert(v10 == 1., "");
# |
# |
# |
# | - static constexpr auto v11 = 1.e0q;
# |
# | + static constexpr auto v11 = 1.e0Q;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v11), const __float128>::value, "");
# |
# | @@ -81,13 +81,13 @@
# | void floating_point_complex_suffix() {
# |
# | // _Complex, I
# |
# |
# |
# | - static constexpr auto v14 = 1.i;
# |
# | + static constexpr auto v14 = 1.I;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v14), const _Complex double>::value, "");
# |
# | static_assert(v14 == 1.I, "");
# |
# |
# |
# | - static constexpr auto v15 = 1.e0i;
# |
# | + static constexpr auto v15 = 1.e0I;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v15), const _Complex double>::value, "");
# |
# | @@ -103,13 +103,13 @@
# |
# |
# | // _Complex, J
# |
# |
# |
# | - static constexpr auto v18 = 1.j;
# |
# | + static constexpr auto v18 = 1.J;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v18), const _Complex double>::value, "");
# |
# | static_assert(v18 == 1.J, "");
# |
# |
# |
# | - static constexpr auto v19 = 1.e0j;
# |
# | + static constexpr auto v19 = 1.e0J;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v19), const _Complex double>::value, "");
# |
# | @@ -126,7 +126,7 @@
# |
# |
# | void macros() {
# |
# | #define PASSTHROUGH(X) X
# |
# | - static constexpr auto m0 = PASSTHROUGH(1.f);
# |
# | + static constexpr auto m0 = PASSTHROUGH(1.F);
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(m0), const float>::value, "");
# |
# | @@ -135,5 +135,5 @@
# |
# |
# | long double operator""_f(long double);
# |
# | void user_defined_literals() {
# |
# | - 1.0_f;
# |
# | + 1.0_F;
# |
# | }
# |
# |
# | ------------------------------ Fixes -----------------------------
# | ---
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.orig
2026-02-28 06:02:23.693048200 +0000
# | +++
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp
2026-02-28 06:02:23.753116700 +0000
# | @@ -13,13 +13,13 @@
# |
# |
# | // Float
# |
# |
# |
# | - static constexpr auto v2 = 1.f;
# |
# | + static constexpr auto v2 = 1.F;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v2), const float>::value, "");
# |
# | static_assert(v2 == 1.0F, "");
# |
# |
# |
# | - static constexpr auto v3 = 1.e0f;
# |
# | + static constexpr auto v3 = 1.e0F;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v3), const float>::value, "");
# |
# | @@ -35,13 +35,13 @@
# |
# |
# | // Long double
# |
# |
# |
# | - static constexpr auto v6 = 1.l;
# |
# | + static constexpr auto v6 = 1.L;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v6), const long double>::value, "");
# |
# | static_assert(v6 == 1., "");
# |
# |
# |
# | - static constexpr auto v7 = 1.e0l;
# |
# | + static constexpr auto v7 = 1.e0L;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v7), const long double>::value, "");
# |
# | @@ -57,13 +57,13 @@
# |
# |
# | // __float128
# |
# |
# |
# | - static constexpr auto v10 = 1.q;
# |
# | + static constexpr auto v10 = 1.Q;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v10), const __float128>::value, "");
# |
# | static_assert(v10 == 1., "");
# |
# |
# |
# | - static constexpr auto v11 = 1.e0q;
# |
# | + static constexpr auto v11 = 1.e0Q;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v11), const __float128>::value, "");
# |
# | @@ -81,13 +81,13 @@
# | void floating_point_complex_suffix() {
# |
# | // _Complex, I
# |
# |
# |
# | - static constexpr auto v14 = 1.i;
# |
# | + static constexpr auto v14 = 1.I;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v14), const _Complex double>::value, "");
# |
# | static_assert(v14 == 1.I, "");
# |
# |
# |
# | - static constexpr auto v15 = 1.e0i;
# |
# | + static constexpr auto v15 = 1.e0I;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v15), const _Complex double>::value, "");
# |
# | @@ -103,13 +103,13 @@
# |
# |
# | // _Complex, J
# |
# |
# |
# | - static constexpr auto v18 = 1.j;
# |
# | + static constexpr auto v18 = 1.J;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v18), const _Complex double>::value, "");
# |
# | static_assert(v18 == 1.J, "");
# |
# |
# |
# | - static constexpr auto v19 = 1.e0j;
# |
# | + static constexpr auto v19 = 1.e0J;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v19), const _Complex double>::value, "");
# |
# | @@ -126,7 +126,7 @@
# |
# |
# | void macros() {
# |
# | #define PASSTHROUGH(X) X
# |
# | - static constexpr auto m0 = PASSTHROUGH(1.f);
# |
# | + static constexpr auto m0 = PASSTHROUGH(1.F);
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(m0), const float>::value, "");
# |
# | @@ -135,5 +135,5 @@
# |
# |
# | long double operator""_f(long double);
# |
# | void user_defined_literals() {
# |
# | - 1.0_f;
# |
# | + 1.0_F;
# |
# | }
# |
# |
# | ------------------------------------------------------------------
# | FileCheck
-input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp.msg
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\uppercase-literal-suffix-floating-point.cpp
-check-prefixes=CHECK-MESSAGES -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\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp.msg:79:169:
note: found here
# |
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:138:3:
warning: floating point literal has suffix 'f', which is not uppercase
[readability-uppercase-literal-suffix]
# |
# |
^~~~~~~~
# |
# |
# |
# | Input file:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp.msg
# |
# | Check file:
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\uppercase-literal-suffix-floating-point.cpp
# |
# |
# |
# | -dump-input=help explains the following input dump.
# |
# |
# |
# | Input was:
# |
# | <<<<<<
# |
# | .
# |
# | .
# |
# | .
# |
# | 74: | ^ ~
# |
# | 75: | F
# |
# | 76:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:129:44:
note: FIX-IT applied suggested code changes
# |
# | 77: 129 | static constexpr auto m0 = PASSTHROUGH(1.f);
# |
# | 78: | ^
# |
# | 79:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:138:3:
warning: floating point literal has suffix 'f', which is not uppercase
[readability-uppercase-literal-suffix]
# |
# | not:imp1
!~~~~~~~
error: no match expected
# |
# | 80: 138 | 1.0_f;
# |
# | 81: | ^ ~
# |
# | 82: | F
# |
# | 83:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-floating-point.cpp.tmp.cpp:138:7:
note: FIX-IT applied suggested code changes
# |
# | 84: clang-tidy applied 12 of 12 suggested fixes.
# |
# |
# | 85: 138 | 1.0_f;
# |
# | 86: | ^
# |
# | >>>>>>
# |
# |
# `-----------------------------
# .---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 546, in <module>
# | main()
# | File
"C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py",
line 542, 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 425, 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 350, 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\\readability\\Output\\uppercase-literal-suffix-floating-point.cpp.tmp.cpp.msg',
'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\readability\\uppercase-literal-suffix-floating-point.cpp',
'-check-prefixes=CHECK-MESSAGES', '-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/checkers/readability/uppercase-literal-suffix-integer.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
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\uppercase-literal-suffix-integer.cpp
readability-uppercase-literal-suffix
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp
-- -- -I
C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\checkers\Inputs\Headers
# 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\checkers\readability\uppercase-literal-suffix-integer.cpp'
readability-uppercase-literal-suffix
'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp'
-- -- -I
'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\clang-tidy\checkers\Inputs\Headers'
# .---command stdout------------
# | Running ['clang-tidy', '--experimental-custom-checks',
'C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\test\\clang-tidy\\checkers\\readability\\Output\\uppercase-literal-suffix-integer.cpp.tmp.cpp',
'-fix', '--checks=-*,readability-uppercase-literal-suffix', '--config={}',
'--', '-I',
'C:/_work/llvm-project/llvm-project/clang-tools-extra/test/../test\\clang-tidy\\checkers\\Inputs\\Headers',
'-std=c++11', '-nostdinc++']...
# | ------------------------ clang-tidy output -----------------------
# | 19 warnings generated.
# |
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:16:30:
warning: integer literal has suffix 'u', which is not uppercase
[readability-uppercase-literal-suffix]
# | 16 | static constexpr auto v3 = 1u;
# | | ^~
# | | U
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:16:31:
note: FIX-IT applied suggested code changes
# | 16 | static constexpr auto v3 = 1u;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:28:30:
warning: integer literal has suffix 'l', which is not uppercase
[readability-uppercase-literal-suffix]
# | 28 | static constexpr auto v5 = 1l;
# | | ^~
# | | L
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:28:31:
note: FIX-IT applied suggested code changes
# | 28 | static constexpr auto v5 = 1l;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:40:30:
warning: integer literal has suffix 'll', which is not uppercase
[readability-uppercase-literal-suffix]
# | 40 | static constexpr auto v7 = 1ll;
# | | ^~~
# | | LL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:40:31:
note: FIX-IT applied suggested code changes
# | 40 | static constexpr auto v7 = 1ll;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:52:30:
warning: integer literal has suffix 'ul', which is not uppercase
[readability-uppercase-literal-suffix]
# | 52 | static constexpr auto v9 = 1ul;
# | | ^~~
# | | UL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:52:31:
note: FIX-IT applied suggested code changes
# | 52 | static constexpr auto v9 = 1ul;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:58:31:
warning: integer literal has suffix 'uL', which is not uppercase
[readability-uppercase-literal-suffix]
# | 58 | static constexpr auto v10 = 1uL;
# | | ^~~
# | | UL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:58:32:
note: FIX-IT applied suggested code changes
# | 58 | static constexpr auto v10 = 1uL;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:64:31:
warning: integer literal has suffix 'Ul', which is not uppercase
[readability-uppercase-literal-suffix]
# | 64 | static constexpr auto v11 = 1Ul;
# | | ^~~
# | | UL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:64:32:
note: FIX-IT applied suggested code changes
# | 64 | static constexpr auto v11 = 1Ul;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:76:31:
warning: integer literal has suffix 'lu', which is not uppercase
[readability-uppercase-literal-suffix]
# | 76 | static constexpr auto v13 = 1lu;
# | | ^~~
# | | LU
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:76:32:
note: FIX-IT applied suggested code changes
# | 76 | static constexpr auto v13 = 1lu;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:82:31:
warning: integer literal has suffix 'Lu', which is not uppercase
[readability-uppercase-literal-suffix]
# | 82 | static constexpr auto v14 = 1Lu;
# | | ^~~
# | | LU
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:82:32:
note: FIX-IT applied suggested code changes
# | 82 | static constexpr auto v14 = 1Lu;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:88:31:
warning: integer literal has suffix 'lU', which is not uppercase
[readability-uppercase-literal-suffix]
# | 88 | static constexpr auto v15 = 1lU;
# | | ^~~
# | | LU
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:88:32:
note: FIX-IT applied suggested code changes
# | 88 | static constexpr auto v15 = 1lU;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:100:31:
warning: integer literal has suffix 'ull', which is not uppercase
[readability-uppercase-literal-suffix]
# | 100 | static constexpr auto v17 = 1ull;
# | | ^~~~
# | | ULL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:100:32:
note: FIX-IT applied suggested code changes
# | 100 | static constexpr auto v17 = 1ull;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:106:31:
warning: integer literal has suffix 'uLL', which is not uppercase
[readability-uppercase-literal-suffix]
# | 106 | static constexpr auto v18 = 1uLL;
# | | ^~~~
# | | ULL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:106:32:
note: FIX-IT applied suggested code changes
# | 106 | static constexpr auto v18 = 1uLL;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:112:31:
warning: integer literal has suffix 'Ull', which is not uppercase
[readability-uppercase-literal-suffix]
# | 112 | static constexpr auto v19 = 1Ull;
# | | ^~~~
# | | ULL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:112:32:
note: FIX-IT applied suggested code changes
# | 112 | static constexpr auto v19 = 1Ull;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:124:31:
warning: integer literal has suffix 'llu', which is not uppercase
[readability-uppercase-literal-suffix]
# | 124 | static constexpr auto v21 = 1llu;
# | | ^~~~
# | | LLU
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:124:32:
note: FIX-IT applied suggested code changes
# | 124 | static constexpr auto v21 = 1llu;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:130:31:
warning: integer literal has suffix 'LLu', which is not uppercase
[readability-uppercase-literal-suffix]
# | 130 | static constexpr auto v22 = 1LLu;
# | | ^~~~
# | | LLU
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:130:32:
note: FIX-IT applied suggested code changes
# | 130 | static constexpr auto v22 = 1LLu;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:136:31:
warning: integer literal has suffix 'llU', which is not uppercase
[readability-uppercase-literal-suffix]
# | 136 | static constexpr auto v23 = 1llU;
# | | ^~~~
# | | LLU
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:136:32:
note: FIX-IT applied suggested code changes
# | 136 | static constexpr auto v23 = 1llU;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:150:31:
warning: integer literal has suffix 'i', which is not uppercase
[readability-uppercase-literal-suffix]
# | 150 | static constexpr auto v25 = 1i;
# | | ^~
# | | I
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:150:32:
note: FIX-IT applied suggested code changes
# | 150 | static constexpr auto v25 = 1i;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:162:31:
warning: integer literal has suffix 'j', which is not uppercase
[readability-uppercase-literal-suffix]
# | 162 | static constexpr auto v27 = 1j;
# | | ^~
# | | J
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:162:32:
note: FIX-IT applied suggested code changes
# | 162 | static constexpr auto v27 = 1j;
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:175:42:
warning: integer literal has suffix 'u', which is not uppercase
[readability-uppercase-literal-suffix]
# | 175 | static constexpr auto m0 = PASSTHROUGH(1u);
# | | ^~
# | | U
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:175:43:
note: FIX-IT applied suggested code changes
# | 175 | static constexpr auto m0 = PASSTHROUGH(1u);
# | | ^
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:190:3:
warning: integer literal has suffix 'ull', which is not uppercase
[readability-uppercase-literal-suffix]
# | 190 | 1_ull;
# | | ^ ~~~
# | | ULL
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:190:5:
note: FIX-IT applied suggested code changes
# | clang-tidy applied 19 of 19 suggested fixes.
# |
# | 190 | 1_ull;
# | | ^
# |
# | ------------------------------------------------------------------
# | diff -u
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.orig
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp
failed:
# | ---
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.orig
2026-02-28 06:02:24.054856100 +0000
# | +++
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp
2026-02-28 06:02:24.129217100 +0000
# | @@ -13,7 +13,7 @@
# |
# |
# | // Unsigned
# |
# |
# |
# | - static constexpr auto v3 = 1u;
# |
# | + static constexpr auto v3 = 1U;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v3), const unsigned int>::value, "");
# |
# | @@ -25,7 +25,7 @@
# |
# |
# | // Long
# |
# |
# |
# | - static constexpr auto v5 = 1l;
# |
# | + static constexpr auto v5 = 1L;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v5), const long>::value, "");
# |
# | @@ -37,7 +37,7 @@
# |
# |
# | // Long Long
# |
# |
# |
# | - static constexpr auto v7 = 1ll;
# |
# | + static constexpr auto v7 = 1LL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v7), const long long>::value, "");
# |
# | @@ -49,19 +49,19 @@
# |
# |
# | // Unsigned Long
# |
# |
# |
# | - static constexpr auto v9 = 1ul;
# |
# | + static constexpr auto v9 = 1UL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v9), const unsigned long>::value, "");
# |
# | static_assert(v9 == 1, "");
# |
# |
# |
# | - static constexpr auto v10 = 1uL;
# |
# | + static constexpr auto v10 = 1UL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v10), const unsigned long>::value, "");
# |
# | static_assert(v10 == 1, "");
# |
# |
# |
# | - static constexpr auto v11 = 1Ul;
# |
# | + static constexpr auto v11 = 1UL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v11), const unsigned long>::value, "");
# |
# | @@ -73,19 +73,19 @@
# |
# |
# | // Long Unsigned
# |
# |
# |
# | - static constexpr auto v13 = 1lu;
# |
# | + static constexpr auto v13 = 1LU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v13), const unsigned long>::value, "");
# |
# | static_assert(v13 == 1, "");
# |
# |
# |
# | - static constexpr auto v14 = 1Lu;
# |
# | + static constexpr auto v14 = 1LU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v14), const unsigned long>::value, "");
# |
# | static_assert(v14 == 1, "");
# |
# |
# |
# | - static constexpr auto v15 = 1lU;
# |
# | + static constexpr auto v15 = 1LU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v15), const unsigned long>::value, "");
# |
# | @@ -97,19 +97,19 @@
# |
# |
# | // Unsigned Long Long
# |
# |
# |
# | - static constexpr auto v17 = 1ull;
# |
# | + static constexpr auto v17 = 1ULL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v17), const unsigned long long>::value,
"");
# |
# | static_assert(v17 == 1, "");
# |
# |
# |
# | - static constexpr auto v18 = 1uLL;
# |
# | + static constexpr auto v18 = 1ULL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v18), const unsigned long long>::value,
"");
# |
# | static_assert(v18 == 1, "");
# |
# |
# |
# | - static constexpr auto v19 = 1Ull;
# |
# | + static constexpr auto v19 = 1ULL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v19), const unsigned long long>::value,
"");
# |
# | @@ -121,19 +121,19 @@
# |
# |
# | // Long Long Unsigned
# |
# |
# |
# | - static constexpr auto v21 = 1llu;
# |
# | + static constexpr auto v21 = 1LLU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v21), const unsigned long long>::value,
"");
# |
# | static_assert(v21 == 1, "");
# |
# |
# |
# | - static constexpr auto v22 = 1LLu;
# |
# | + static constexpr auto v22 = 1LLU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v22), const unsigned long long>::value,
"");
# |
# | static_assert(v22 == 1, "");
# |
# |
# |
# | - static constexpr auto v23 = 1llU;
# |
# | + static constexpr auto v23 = 1LLU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v23), const unsigned long long>::value,
"");
# |
# | @@ -147,7 +147,7 @@
# | void integer_complex_suffix() {
# |
# | // _Complex, I
# |
# |
# |
# | - static constexpr auto v25 = 1i;
# |
# | + static constexpr auto v25 = 1I;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v25), const _Complex int>::value, "");
# |
# | @@ -159,7 +159,7 @@
# |
# |
# | // _Complex, J
# |
# |
# |
# | - static constexpr auto v27 = 1j;
# |
# | + static constexpr auto v27 = 1J;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v27), const _Complex int>::value, "");
# |
# | @@ -172,7 +172,7 @@
# |
# |
# | void macros() {
# |
# | #define PASSTHROUGH(X) X
# |
# | - static constexpr auto m0 = PASSTHROUGH(1u);
# |
# | + static constexpr auto m0 = PASSTHROUGH(1U);
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(m0), const unsigned int>::value, "");
# |
# | @@ -187,7 +187,7 @@
# |
# |
# | unsigned long long int operator""_ull(unsigned long long int);
# |
# | void user_defined_literals() {
# |
# | - 1_ull;
# |
# | + 1_ULL;
# |
# | }
# |
# |
# |
# | template <unsigned alignment>
# |
# |
# | ------------------------------ Fixes -----------------------------
# | ---
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.orig
2026-02-28 06:02:24.054856100 +0000
# | +++
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp
2026-02-28 06:02:24.129217100 +0000
# | @@ -13,7 +13,7 @@
# |
# |
# | // Unsigned
# |
# |
# |
# | - static constexpr auto v3 = 1u;
# |
# | + static constexpr auto v3 = 1U;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v3), const unsigned int>::value, "");
# |
# | @@ -25,7 +25,7 @@
# |
# |
# | // Long
# |
# |
# |
# | - static constexpr auto v5 = 1l;
# |
# | + static constexpr auto v5 = 1L;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v5), const long>::value, "");
# |
# | @@ -37,7 +37,7 @@
# |
# |
# | // Long Long
# |
# |
# |
# | - static constexpr auto v7 = 1ll;
# |
# | + static constexpr auto v7 = 1LL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v7), const long long>::value, "");
# |
# | @@ -49,19 +49,19 @@
# |
# |
# | // Unsigned Long
# |
# |
# |
# | - static constexpr auto v9 = 1ul;
# |
# | + static constexpr auto v9 = 1UL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v9), const unsigned long>::value, "");
# |
# | static_assert(v9 == 1, "");
# |
# |
# |
# | - static constexpr auto v10 = 1uL;
# |
# | + static constexpr auto v10 = 1UL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v10), const unsigned long>::value, "");
# |
# | static_assert(v10 == 1, "");
# |
# |
# |
# | - static constexpr auto v11 = 1Ul;
# |
# | + static constexpr auto v11 = 1UL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v11), const unsigned long>::value, "");
# |
# | @@ -73,19 +73,19 @@
# |
# |
# | // Long Unsigned
# |
# |
# |
# | - static constexpr auto v13 = 1lu;
# |
# | + static constexpr auto v13 = 1LU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v13), const unsigned long>::value, "");
# |
# | static_assert(v13 == 1, "");
# |
# |
# |
# | - static constexpr auto v14 = 1Lu;
# |
# | + static constexpr auto v14 = 1LU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v14), const unsigned long>::value, "");
# |
# | static_assert(v14 == 1, "");
# |
# |
# |
# | - static constexpr auto v15 = 1lU;
# |
# | + static constexpr auto v15 = 1LU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v15), const unsigned long>::value, "");
# |
# | @@ -97,19 +97,19 @@
# |
# |
# | // Unsigned Long Long
# |
# |
# |
# | - static constexpr auto v17 = 1ull;
# |
# | + static constexpr auto v17 = 1ULL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v17), const unsigned long long>::value,
"");
# |
# | static_assert(v17 == 1, "");
# |
# |
# |
# | - static constexpr auto v18 = 1uLL;
# |
# | + static constexpr auto v18 = 1ULL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v18), const unsigned long long>::value,
"");
# |
# | static_assert(v18 == 1, "");
# |
# |
# |
# | - static constexpr auto v19 = 1Ull;
# |
# | + static constexpr auto v19 = 1ULL;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v19), const unsigned long long>::value,
"");
# |
# | @@ -121,19 +121,19 @@
# |
# |
# | // Long Long Unsigned
# |
# |
# |
# | - static constexpr auto v21 = 1llu;
# |
# | + static constexpr auto v21 = 1LLU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v21), const unsigned long long>::value,
"");
# |
# | static_assert(v21 == 1, "");
# |
# |
# |
# | - static constexpr auto v22 = 1LLu;
# |
# | + static constexpr auto v22 = 1LLU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v22), const unsigned long long>::value,
"");
# |
# | static_assert(v22 == 1, "");
# |
# |
# |
# | - static constexpr auto v23 = 1llU;
# |
# | + static constexpr auto v23 = 1LLU;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v23), const unsigned long long>::value,
"");
# |
# | @@ -147,7 +147,7 @@
# | void integer_complex_suffix() {
# |
# | // _Complex, I
# |
# |
# |
# | - static constexpr auto v25 = 1i;
# |
# | + static constexpr auto v25 = 1I;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v25), const _Complex int>::value, "");
# |
# | @@ -159,7 +159,7 @@
# |
# |
# | // _Complex, J
# |
# |
# |
# | - static constexpr auto v27 = 1j;
# |
# | + static constexpr auto v27 = 1J;
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(v27), const _Complex int>::value, "");
# |
# | @@ -172,7 +172,7 @@
# |
# |
# | void macros() {
# |
# | #define PASSTHROUGH(X) X
# |
# | - static constexpr auto m0 = PASSTHROUGH(1u);
# |
# | + static constexpr auto m0 = PASSTHROUGH(1U);
# |
# | //
# |
# | //
# |
# | static_assert(is_same<decltype(m0), const unsigned int>::value, "");
# |
# | @@ -187,7 +187,7 @@
# |
# |
# | unsigned long long int operator""_ull(unsigned long long int);
# |
# | void user_defined_literals() {
# |
# | - 1_ull;
# |
# | + 1_ULL;
# |
# | }
# |
# |
# |
# | template <unsigned alignment>
# |
# |
# | ------------------------------------------------------------------
# | FileCheck
-input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp.msg
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\uppercase-literal-suffix-integer.cpp
-check-prefixes=CHECK-MESSAGES -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\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp.msg:128:162:
note: found here
# |
# |
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:190:3:
warning: integer literal has suffix 'ull', which is not uppercase
[readability-uppercase-literal-suffix]
# |
# |
^~~~~~~~
# |
# |
# |
# | Input file:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp.msg
# |
# | Check file:
C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\readability\uppercase-literal-suffix-integer.cpp
# |
# |
# |
# | -dump-input=help explains the following input dump.
# |
# |
# |
# | Input was:
# |
# | <<<<<<
# |
# | .
# |
# | .
# |
# | .
# |
# | 123: | ^~
# |
# | 124: | U
# |
# | 125:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:175:43:
note: FIX-IT applied suggested code changes
# |
# | 126: 175 | static constexpr auto m0 = PASSTHROUGH(1u);
# |
# | 127: | ^
# |
# | 128:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:190:3:
warning: integer literal has suffix 'ull', which is not uppercase
[readability-uppercase-literal-suffix]
# |
# | not:imp1
!~~~~~~~
error: no match expected
# |
# | 129: 190 | 1_ull;
# |
# | 130: | ^ ~~~
# |
# | 131: | ULL
# |
# | 132:
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\uppercase-literal-suffix-integer.cpp.tmp.cpp:190:5:
note: FIX-IT applied suggested code changes
# |
# | 133: clang-tidy applied 19 of 19 suggested fixes.
# |
# |
# | 134: 190 | 1_ull;
# |
# | 135: | ^
# |
# | >>>>>>
# |
# |
# `-----------------------------
# .---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 546, in <module>
# | main()
# | File
"C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py",
line 542, 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 425, 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 350, 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\\readability\\Output\\uppercase-literal-suffix-integer.cpp.tmp.cpp.msg',
'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\readability\\uppercase-literal-suffix-integer.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/183882
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits