[clang] [clang] Mark -Wlarge-by-value-copy diagnostics DefaultIgnore (PR #214696)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 05:01:17 PDT 2026


github-actions[bot] wrote:

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

* 55970 tests passed
* 1471 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.SemaCXX/warn-large-by-value-copy.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -verify -fsyntax-only -Wlarge-by-value-copy=100 C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -verify -fsyntax-only -Wlarge-by-value-copy=100 'C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp'
# .---command stderr------------
# | error: 'expected-warning' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp Line 15: return value of 'f101' is a large (101 bytes) pass-by-value object
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp Line 15: 's' is a large (101 bytes) pass-by-value argument
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp Line 18: '' is a large (101 bytes) pass-by-value argument
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp Line 23: return value of 'foo_template<rdar8548050::S101>' is a large
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp Line 23 (directive at C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp:24): '' is a large (101 bytes) pass-by-value argument
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp Line 42: ts' is a large (300 bytes) pass-by-value argument
# | error: 'expected-note' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaCXX\warn-large-by-value-copy.cpp Line 46: instantiation
# | 7 errors generated.
# `-----------------------------
# 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/214696


More information about the cfe-commits mailing list