[clang] [LifetimeSafety] Add report on misuse of clang::noescape (PR #177260)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 24 03:41:46 PST 2026


github-actions[bot] wrote:

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

* 52302 tests passed
* 916 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.Sema/warn-lifetime-safety-noescape.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
cp C:\_work\llvm-project\llvm-project\clang\test\Sema\warn-lifetime-safety-noescape.cpp C:\_work\llvm-project\llvm-project\build\tools\clang\test\Sema\Output\warn-lifetime-safety-noescape.cpp.tmp
# executed command: cp 'C:\_work\llvm-project\llvm-project\clang\test\Sema\warn-lifetime-safety-noescape.cpp' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Sema\Output\warn-lifetime-safety-noescape.cpp.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -x c++ -fexperimental-lifetime-safety -Wexperimental-lifetime-safety-noescape -Wno-dangling -fixit -verify C:\_work\llvm-project\llvm-project\build\tools\clang\test\Sema\Output\warn-lifetime-safety-noescape.cpp.tmp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -x c++ -fexperimental-lifetime-safety -Wexperimental-lifetime-safety-noescape -Wno-dangling -fixit -verify 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Sema\Output\warn-lifetime-safety-noescape.cpp.tmp'
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   (frontend): unknown argument: '-fexperimental-lifetime-safety'
# `-----------------------------
# 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/177260


More information about the cfe-commits mailing list