diff options
author | Peng Liu <winner245@hotmail.com> | 2025-06-04 13:04:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-04 13:04:19 -0400 |
commit | ec5610c4a2ef15551fdfbe9c990851376f58efb6 (patch) | |
tree | 35a77710ad19800a788e15c15dcadfc726d1db4b /llvm/lib/FileCheck/FileCheck.cpp | |
parent | e03044f892ef570df7dc25b21bf082a7f842ce61 (diff) | |
download | llvm-ec5610c4a2ef15551fdfbe9c990851376f58efb6.zip llvm-ec5610c4a2ef15551fdfbe9c990851376f58efb6.tar.gz llvm-ec5610c4a2ef15551fdfbe9c990851376f58efb6.tar.bz2 |
[libc++] Ensure strong exception guarantee for forward_list::resize (#131025)
The current implementation of `forward_list::resize` does not meet the
strong exception safety guarantee required by [forward.list.modifiers]:
If an exception is thrown by any of these member functions there is no
effect on the container.
This patch refactors `resize()` to provide strong exception safety and
introduces additional tests to validate the strong exception guarantees
for other `forward_list` modifiers.
Fixes #118366.
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions