github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 87830 tests passed
* 1538 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/readability/redundant-member-init.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
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-member-init.cpp
readability-redundant-member-init
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp
-config="{CheckOptions:
{readability-redundant-member-init.IgnoreBaseInCopyConstructors:
true} }"
# 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/checkers/readability/redundant-member-init.cpp
readability-redundant-member-init
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp
'-config={CheckOptions:
{readability-redundant-member-init.IgnoreBaseInCopyConstructors:
true} }'
# .---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/readability/Output/redundant-member-init.cpp.tmp.cpp',
'-fix', '--checks=-*,readability-redundant-member-init',
'-config={CheckOptions:
{readability-redundant-member-init.IgnoreBaseInCopyConstructors:
true} }', '--', '-std=c++11', '-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 -----------------------
# | 26 warnings generated.
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:29:10:
warning: initializer for member 'f' is redundant
[readability-redundant-member-init]
# | 29 | F1() : f() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:29:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:37:10:
warning: initializer for member 'f' is redundant
[readability-redundant-member-init]
# | 37 | F2() : f() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:37:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:45:10:
warning: initializer for member 'f' is redundant
[readability-redundant-member-init]
# | 45 | F3() : f(), g(1), h() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:45:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:45:21:
warning: initializer for member 'h' is redundant
[readability-redundant-member-init]
# | 45 | F3() : f(), g(1), h() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:45:21:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:55:10:
warning: initializer for member 'f' is redundant
[readability-redundant-member-init]
# | 55 | F4() : f() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:55:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:65:10:
warning: initializer for base class 'S' is redundant
[readability-redundant-member-init]
# | 65 | F5() : S() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:65:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:80:10:
warning: initializer for member 'uc' is redundant
[readability-redundant-member-init]
# | 80 | F6() : uc() {}
# | | ^~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:80:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:88:10:
warning: initializer for base class 'S' is redundant
[readability-redundant-member-init]
# | 88 | F7() : S(), T() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:88:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:88:15:
warning: initializer for base class 'T' is redundant
[readability-redundant-member-init]
# | 88 | F7() : S(), T() {}
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:88:15:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:107:10:
warning: initializer for base class 'Foo::Template<N_THINGS>' is redundant
[readability-redundant-member-init]
# | 107 | F8() : Template() {}
# | | ^~~~~~~~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:107:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:114:10:
warning: initializer for member 's1' is redundant
[readability-redundant-member-init]
# | 114 | F9() : s1() {}
# | | ^~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:114:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:126:5:
warning: initializer for member 'f' is redundant
[readability-redundant-member-init]
# | 126 | f(),
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:126:5:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:127:5:
warning: initializer for member 'g' is redundant
[readability-redundant-member-init]
# | 127 | g()
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:127:5:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:145:10:
warning: initializer for member 'a' is redundant
[readability-redundant-member-init]
# | 145 | : T(), a()
# | | ^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:145:10:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:256:8:
warning: initializer for member 'f1' is redundant
[readability-redundant-member-init]
# | 256 | S f1 {};
# | | ^~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:256:7:
note: FIX-IT applied suggested code changes
# | 256 | S f1 {};
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:263:9:
warning: initializer for member 'f2' is redundant
[readability-redundant-member-init]
# | 263 | T f2 {};
# | | ^~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:263:7:
note: FIX-IT applied suggested code changes
# | 263 | T f2 {};
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:270:10:
warning: initializer for member 'f3' is redundant
[readability-redundant-member-init]
# | 270 | S f3 = {};
# | | ~~^~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:270:7:
note: FIX-IT applied suggested code changes
# | 270 | S f3 = {};
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:277:10:
warning: initializer for member 'f4' is redundant
[readability-redundant-member-init]
# | 277 | T f4 = {};
# | | ~~^~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:277:7:
note: FIX-IT applied suggested code changes
# | 277 | T f4 = {};
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:285:22:
warning: initializer for member 'f5' is redundant
[readability-redundant-member-init]
# | 285 | S f5 /*comment*/ = S();
# | | ~~^~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:285:19:
note: FIX-IT applied suggested code changes
# | 285 | S f5 /*comment*/ = S();
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:293:18:
warning: initializer for member 'uc2' is redundant
[readability-redundant-member-init]
# | 293 | UsesCleanup uc2{};
# | | ^~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:293:18:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:326:7:
warning: initializer for member 's' is redundant
[readability-redundant-member-init]
# | 326 | S s BRACES;
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:323:16:
note: expanded from macro 'BRACES'
# | 323 | #define BRACES {}
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:331:24:
warning: initializer for member 's' is redundant
[readability-redundant-member-init]
# | 331 | WithoutMacroCtor() : s(EMPTY) {};
# | | ^~~~~~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:331:24:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:338:7:
warning: initializer for member 's' is redundant
[readability-redundant-member-init]
# | 338 | S s {/* default-construct */};
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:338:6:
note: FIX-IT applied suggested code changes
# | 338 | S s {/* default-construct */};
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:345:25:
warning: initializer for member 's' is redundant
[readability-redundant-member-init]
# | 345 | WithMacroCtorInit() : CTOR_INIT {}
# | | ^~~~~~~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:345:25:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:343:19:
note: expanded from macro 'CTOR_INIT'
# | 343 | #define CTOR_INIT s(S())
# | | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:351:33:
warning: initializer for member 's' is redundant
[readability-redundant-member-init]
# | 351 | WithMacroBracesInCtorInit() : s BRACES {}
# | | ^~~~~~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:351:33:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:359:27:
warning: initializer for member 's' is redundant
[readability-redundant-member-init]
# | 359 | WithMacroMemberName() : MEMBER_NAME(S()) {}
# | | ^~~~~~~~~~~~~~~~
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:359:27:
note: FIX-IT applied suggested code changes
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:357:21:
note: expanded from macro 'MEMBER_NAME'
# | clang-tidy applied 25 of 25 suggested fixes.
# | 357 | #define MEMBER_NAME s
# | | ^
# |
# | ------------------------------------------------------------------
# | diff -u
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.orig
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp
failed:
# | ---
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.orig
2026-05-07 08:43:54.874539426 +0000
# | +++
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp
2026-05-07 08:43:54.889539676 +0000
# | @@ -26,7 +26,7 @@
# |
# | // Initializer calls default constructor
# | struct F1 {
# | - F1() : f() {}
# | + F1() {}
# | //
# | //
# | S f;
# | @@ -34,7 +34,7 @@
# |
# | // Initializer calls default constructor with default argument
# | struct F2 {
# | - F2() : f() {}
# | + F2() {}
# | //
# | //
# | T f;
# | @@ -42,7 +42,7 @@
# |
# | // Multiple redundant initializers for same constructor
# | struct F3 {
# | - F3() : f(), g(1), h() {}
# | + F3() : g(1) {}
# | //
# | //
# | //
# | @@ -52,7 +52,7 @@
# | // Templated class independent type
# | template <class V>
# | struct F4 {
# | - F4() : f() {}
# | + F4() {}
# | //
# | //
# | S f;
# | @@ -62,7 +62,7 @@
# |
# | // Base class
# | struct F5 : S {
# | - F5() : S() {}
# | + F5() {}
# | //
# | //
# | };
# | @@ -77,7 +77,7 @@
# | };
# |
# | struct F6 {
# | - F6() : uc() {}
# | + F6() {}
# | //
# | //
# | UsesCleanup uc;
# | @@ -85,7 +85,7 @@
# |
# | // Multiple inheritance
# | struct F7 : S, T {
# | - F7() : S(), T() {}
# | + F7() {}
# | //
# | //
# | //
# | @@ -104,14 +104,14 @@
# | enum { N_THINGS = 5 };
# |
# | struct F8 : Foo::Template<N_THINGS> {
# | - F8() : Template() {}
# | + F8() {}
# | //
# | //
# | };
# |
# | // Anonymous struct
# | struct F9 {
# | - F9() : s1() {}
# | + F9() {}
# | //
# | //
# | struct {
# | @@ -122,9 +122,8 @@
# |
# | // struct whose inline copy constructor default-initializes its base class
# | struct WithCopyConstructor1 : public T {
# | - WithCopyConstructor1(const WithCopyConstructor1& other) : T(),
# | - f(),
# | - g()
# | + WithCopyConstructor1(const WithCopyConstructor1& other) : T()
# | +
# | {}
# | S f, g;
# | };
# | @@ -142,7 +141,7 @@
# | S a;
# | };
# | WithCopyConstructor2::WithCopyConstructor2(const WithCopyConstructor2&
other)
# | - : T(), a()
# | + : T()
# | {}
# | // No warning in copy constructor about T since
IgnoreBaseInCopyConstructors=1
# | //
# | @@ -253,28 +252,28 @@
# |
# | // Direct in-class initialization with default constructor
# | struct D1 {
# | - S f1 {};
# | + S f1;
# | //
# | //
# | };
# |
# | // Direct in-class initialization with constructor with default argument
# | struct D2 {
# | - T f2 {};
# | + T f2;
# | //
# | //
# | };
# |
# | // Direct in-class initialization with default constructor (assign)
# | struct D3 {
# | - S f3 = {};
# | + S f3;
# | //
# | //
# | };
# |
# | // Direct in-class initialization with constructor with default argument
(assign)
# | struct D4 {
# | - T f4 = {};
# | + T f4;
# | //
# | //
# | };
# | @@ -282,7 +281,7 @@
# | // Templated class independent type
# | template <class V>
# | struct D5 {
# | - S f5 /*comment*/ = S();
# | + S f5 /*comment*/;
# | //
# | //
# | };
# | @@ -290,7 +289,7 @@
# | D5<S> d5s;
# |
# | struct D6 {
# | - UsesCleanup uc2{};
# | + UsesCleanup uc2;
# | //
# | //
# | };
# | @@ -328,27 +327,27 @@
# | };
# |
# | struct WithoutMacroCtor {
# | - WithoutMacroCtor() : s(EMPTY) {};
# | + WithoutMacroCtor() {};
# | //
# | //
# | S s;
# | };
# |
# | struct WithBlockCommentInInit {
# | - S s {/* default-construct */};
# | + S s;
# | //
# | //
# | };
# |
# | #define CTOR_INIT s(S())
# | struct WithMacroCtorInit {
# | - WithMacroCtorInit() : CTOR_INIT {}
# | + WithMacroCtorInit() {}
# | //
# | S s;
# | };
# |
# | struct WithMacroBracesInCtorInit {
# | - WithMacroBracesInCtorInit() : s BRACES {}
# | + WithMacroBracesInCtorInit() {}
# | //
# | //
# | S s;
# | @@ -356,7 +355,7 @@
# |
# | #define MEMBER_NAME s
# | struct WithMacroMemberName {
# | - WithMacroMemberName() : MEMBER_NAME(S()) {}
# | + WithMacroMemberName() {}
# | //
# | S s;
# | };
# |
# | ------------------------------ Fixes -----------------------------
# | ---
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.orig
2026-05-07 08:43:54.874539426 +0000
# | +++
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp
2026-05-07 08:43:54.889539676 +0000
# | @@ -26,7 +26,7 @@
# |
# | // Initializer calls default constructor
# | struct F1 {
# | - F1() : f() {}
# | + F1() {}
# | //
# | //
# | S f;
# | @@ -34,7 +34,7 @@
# |
# | // Initializer calls default constructor with default argument
# | struct F2 {
# | - F2() : f() {}
# | + F2() {}
# | //
# | //
# | T f;
# | @@ -42,7 +42,7 @@
# |
# | // Multiple redundant initializers for same constructor
# | struct F3 {
# | - F3() : f(), g(1), h() {}
# | + F3() : g(1) {}
# | //
# | //
# | //
# | @@ -52,7 +52,7 @@
# | // Templated class independent type
# | template <class V>
# | struct F4 {
# | - F4() : f() {}
# | + F4() {}
# | //
# | //
# | S f;
# | @@ -62,7 +62,7 @@
# |
# | // Base class
# | struct F5 : S {
# | - F5() : S() {}
# | + F5() {}
# | //
# | //
# | };
# | @@ -77,7 +77,7 @@
# | };
# |
# | struct F6 {
# | - F6() : uc() {}
# | + F6() {}
# | //
# | //
# | UsesCleanup uc;
# | @@ -85,7 +85,7 @@
# |
# | // Multiple inheritance
# | struct F7 : S, T {
# | - F7() : S(), T() {}
# | + F7() {}
# | //
# | //
# | //
# | @@ -104,14 +104,14 @@
# | enum { N_THINGS = 5 };
# |
# | struct F8 : Foo::Template<N_THINGS> {
# | - F8() : Template() {}
# | + F8() {}
# | //
# | //
# | };
# |
# | // Anonymous struct
# | struct F9 {
# | - F9() : s1() {}
# | + F9() {}
# | //
# | //
# | struct {
# | @@ -122,9 +122,8 @@
# |
# | // struct whose inline copy constructor default-initializes its base class
# | struct WithCopyConstructor1 : public T {
# | - WithCopyConstructor1(const WithCopyConstructor1& other) : T(),
# | - f(),
# | - g()
# | + WithCopyConstructor1(const WithCopyConstructor1& other) : T()
# | +
# | {}
# | S f, g;
# | };
# | @@ -142,7 +141,7 @@
# | S a;
# | };
# | WithCopyConstructor2::WithCopyConstructor2(const WithCopyConstructor2&
other)
# | - : T(), a()
# | + : T()
# | {}
# | // No warning in copy constructor about T since
IgnoreBaseInCopyConstructors=1
# | //
# | @@ -253,28 +252,28 @@
# |
# | // Direct in-class initialization with default constructor
# | struct D1 {
# | - S f1 {};
# | + S f1;
# | //
# | //
# | };
# |
# | // Direct in-class initialization with constructor with default argument
# | struct D2 {
# | - T f2 {};
# | + T f2;
# | //
# | //
# | };
# |
# | // Direct in-class initialization with default constructor (assign)
# | struct D3 {
# | - S f3 = {};
# | + S f3;
# | //
# | //
# | };
# |
# | // Direct in-class initialization with constructor with default argument
(assign)
# | struct D4 {
# | - T f4 = {};
# | + T f4;
# | //
# | //
# | };
# | @@ -282,7 +281,7 @@
# | // Templated class independent type
# | template <class V>
# | struct D5 {
# | - S f5 /*comment*/ = S();
# | + S f5 /*comment*/;
# | //
# | //
# | };
# | @@ -290,7 +289,7 @@
# | D5<S> d5s;
# |
# | struct D6 {
# | - UsesCleanup uc2{};
# | + UsesCleanup uc2;
# | //
# | //
# | };
# | @@ -328,27 +327,27 @@
# | };
# |
# | struct WithoutMacroCtor {
# | - WithoutMacroCtor() : s(EMPTY) {};
# | + WithoutMacroCtor() {};
# | //
# | //
# | S s;
# | };
# |
# | struct WithBlockCommentInInit {
# | - S s {/* default-construct */};
# | + S s;
# | //
# | //
# | };
# |
# | #define CTOR_INIT s(S())
# | struct WithMacroCtorInit {
# | - WithMacroCtorInit() : CTOR_INIT {}
# | + WithMacroCtorInit() {}
# | //
# | S s;
# | };
# |
# | struct WithMacroBracesInCtorInit {
# | - WithMacroBracesInCtorInit() : s BRACES {}
# | + WithMacroBracesInCtorInit() {}
# | //
# | //
# | S s;
# | @@ -356,7 +355,7 @@
# |
# | #define MEMBER_NAME s
# | struct WithMacroMemberName {
# | - WithMacroMemberName() : MEMBER_NAME(S()) {}
# | + WithMacroMemberName() {}
# | //
# | S s;
# | };
# |
# | ------------------------------------------------------------------
# | FileCheck
-input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp.msg
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-member-init.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/readability/redundant-member-init.cpp:271:21:
error: CHECK-MESSAGES: expected string not found in input
# | // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: initializer for member 'f3' is
redundant
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp.msg:64:222:
note: scanning from here
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:263:9:
warning: initializer for member 'f2' is redundant
[readability-redundant-member-init]
# |
^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp.msg:64:222:
note: with "@LINE-1" equal to "270"
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:263:9:
warning: initializer for member 'f2' is redundant
[readability-redundant-member-init]
# |
^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp.msg:70:169:
note: possible intended match here
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:270:10:
warning: initializer for member 'f3' is redundant
[readability-redundant-member-init]
# |
^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp.msg
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-member-init.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 59: 256 | S f1 {};
# | 60: | ^~
# | 61:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:256:7:
note: FIX-IT applied suggested code changes
# | 62: 256 | S f1 {};
# | 63: | ^
# | 64:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:263:9:
warning: initializer for member 'f2' is redundant
[readability-redundant-member-init]
# | check:271'0
X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:271'1
with "@LINE-1" equal to "270"
# | 65: 263 | T f2 {};
# | check:271'0 ~~~~~~~~~~~~~~~~
# | 66: | ^~
# | check:271'0 ~~~~~~
# | 67:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:263:7:
note: FIX-IT applied suggested code changes
# | check:271'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 68: 263 | T f2 {};
# | check:271'0 ~~~~~~~~~~~~~~~~
# | 69: | ^
# | check:271'0 ~~~~~
# | 70:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:270:10:
warning: initializer for member 'f3' is redundant
[readability-redundant-member-init]
# | check:271'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:271'2
?
possible intended match
# | 71: 270 | S f3 = {};
# | check:271'0 ~~~~~~~~~~~~~~~~~~
# | 72: | ~~^~
# | check:271'0 ~~~~~~~~
# | 73:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/checkers/readability/Output/redundant-member-init.cpp.tmp.cpp:270:7:
note: FIX-IT applied suggested code changes
# | check:271'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 74: 270 | S f3 = {};
# | check:271'0 ~~~~~~~~~~~~~~~~~~
# | 75: | ^
# | check:271'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/readability/Output/redundant-member-init.cpp.tmp.cpp.msg',
'/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-member-init.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/196260
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits