[clang-tools-extra] [clang-tidy] Add IgnoreMacros option to readability-redundant-member-init (PR #190530)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 5 08:05:40 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3114 tests passed
* 30 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
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\redundant-member-init.cpp readability-redundant-member-init C:\_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: 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\redundant-member-init.cpp' readability-redundant-member-init 'C:\_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', 'C:\\_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', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\Inputs\\Headers\\std']...
# | clang-tidy --experimental-custom-checks C:\_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 C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\checkers\Inputs\Headers\std failed:
# | Assertion failed: isExpansion() && "Not a macro expansion SLocEntry!", file C:\_work\llvm-project\llvm-project\clang\include\clang/Basic/SourceManager.h, line 509
# |
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# |
# | Stack dump:
# |
# | 0. Program arguments: clang-tidy --experimental-custom-checks C:\\_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 C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\Inputs\\Headers\\std
# |
# | 1. <eof> parser at end of file
# |
# | 2. ASTMatcher: Processing 'readability-redundant-member-init' against:
# |
# | FieldDecl WithMacro1::s : <C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\redundant-member-init.cpp.tmp.cpp:326:3, col:7 <Spelling=line:323:17>>
# |
# | --- Bound Nodes Begin ---
# |
# | class - { CXXRecordDecl S : <C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\redundant-member-init.cpp.tmp.cpp:7:1, line:11:1> }
# |
# | construct - { CXXConstructExpr : <C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\redundant-member-init.cpp.tmp.cpp:326:7 <Spelling=line:323:16>, line:326:7 <Spelling=line:323:17>> }
# |
# | field - { FieldDecl WithMacro1::s : <C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-tidy\checkers\readability\Output\redundant-member-init.cpp.tmp.cpp:326:3, col:7 <Spelling=line:323:17>> }
# |
# | --- Bound Nodes End ---
# |
# | Exception Code: 0xC000001D
# |
# | #0 0x00007ff6e21596a6 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3296a6)
# |
# | #1 0x00007ffb54b7bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |
# | #2 0x00007ffb54b7cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |
# | #3 0x00007ffb54b7e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |
# | #4 0x00007ffb54b7e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |
# | #5 0x00007ff6e221c6d9 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3ec6d9)
# |
# | #6 0x00007ff6e22c59f3 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x4959f3)
# |
# | #7 0x00007ff6e22c84bf (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x4984bf)
# |
# | #8 0x00007ff6e366129a (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x183129a)
# |
# | #9 0x00007ff6e2cabe83 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0xe7be83)
# |
# | #10 0x00007ff6e2cab8e3 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0xe7b8e3)
# |
# | #11 0x00007ff6e21c7083 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x397083)
# |
# | #12 0x00007ff6e2d176fb (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0xee76fb)
# |
# | #13 0x00007ff6e21c6395 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x396395)
# |
# | #14 0x00007ff6e21ca785 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x39a785)
# |
# | #15 0x00007ff6e21cfa9b (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x39fa9b)
# |
# | #16 0x00007ff6e21cae7b (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x39ae7b)
# |
# | #17 0x00007ff6e21cb19b (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x39b19b)
# |
# | #18 0x00007ff6e21ca7ab (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x39a7ab)
# |
# | #19 0x00007ff6e219c87d (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x36c87d)
# |
# | #20 0x00007ff6e21f8fbc (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3c8fbc)
# |
# | #21 0x00007ff6e32d6d37 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x14a6d37)
# |
# | #22 0x00007ff6e226a77f (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x43a77f)
# |
# | #23 0x00007ff6e2f38764 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x1108764)
# |
# | #24 0x00007ff6e2208515 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3d8515)
# |
# | #25 0x00007ff6e1ea9a9a (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x79a9a)
# |
# | #26 0x00007ff6e2208380 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3d8380)
# |
# | #27 0x00007ff6e2206db5 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3d6db5)
# |
# | #28 0x00007ff6e220ac39 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x3dac39)
# |
# | #29 0x00007ff6e1ea2b88 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x72b88)
# |
# | #30 0x00007ff6e1e35c24 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x5c24)
# |
# | #31 0x00007ff6e54eaae0 (c:\_work\llvm-project\llvm-project\build\bin\clang-tidy.exe+0x36baae0)
# |
# | #32 0x00007ffb5a764cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# |
# | #33 0x00007ffb673fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# |
# |
# `-----------------------------
# .---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 554, in <module>
# | main()
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 550, 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 426, in run
# | clang_tidy_output = self.run_clang_tidy()
# | ^^^^^^^^^^^^^^^^^^^^^
# | File "C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\check_clang_tidy.py", line 289, in run_clang_tidy
# | clang_tidy_output = try_run(args)
# | ^^^^^^^^^^^^^
# | 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 '['clang-tidy', '--experimental-custom-checks', 'C:\\_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', 'C:\\_work\\llvm-project\\llvm-project\\clang-tools-extra\\test\\clang-tidy\\checkers\\Inputs\\Headers\\std']' returned non-zero exit status 3221225501.
# `-----------------------------
# 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/190530
More information about the cfe-commits
mailing list