llvm-capstone/libcxx
Tacet 5351ded68d
[libc++] Remove usage of internal string function in sstream (#75858)
This function replaces a call to `__move_assign` (internal function)
with two calls to public member functions (`resize` and `erase`). The
order of calls is chosen for the best performance.

This change is required to [turn on ASan string annotations for short
strings](https://github.com/llvm/llvm-project/pull/75882) (Short String
Optimization - SSO).

The `std::basic_string` class's `void __move_assign(basic_string&&
__str, size_type __pos, size_type __len)` function operates on
uninitialized strings, where it is reasonable to assume that the memory
is not poisoned. However, in `sstream` this function is applied to
existing strings that already have poisoned memory.

String ASan annotations turned on here:
https://github.com/llvm/llvm-project/pull/72677
2024-01-08 18:56:43 +01:00
..
benchmarks [libc++] Implement ranges::contains (#65148) 2023-12-19 16:34:19 -08:00
cmake [libcxx] Require qemu-system-arm for armv7m builder (#77067) 2024-01-08 08:55:39 +00:00
docs [libc++][doc] Marks LWG3257 as complete (#77237) 2024-01-08 17:24:42 +01:00
include [libc++] Remove usage of internal string function in sstream (#75858) 2024-01-08 18:56:43 +01:00
lib [libc++][print] Adds ostream overloads. (#73262) 2023-12-19 19:32:17 +01:00
modules [libc++][modules] Fixes C++20 build errors. 2023-12-23 11:43:17 +01:00
src Reapply "[libc++][streams] P1759R6: Native handles and file streams" (#77190) 2024-01-07 18:01:03 +02:00
test Reapply "[libc++][streams] P1759R6: Native handles and file streams" (#77190) 2024-01-07 18:01:03 +02:00
utils [libcxx] Require qemu-system-arm for armv7m builder (#77067) 2024-01-08 08:55:39 +00:00
.clang-format [libc++] Rename _LIBCPP_INLINE_VISIBILITY to _LIBCPP_HIDE_FROM_ABI (#74095) 2023-12-04 10:25:14 -05:00
.clang-tidy [libc++] Fix template parameter naming and enforce it through readability-identifier-naming 2023-07-24 19:54:12 -07:00
.gitignore
appveyor-reqs-install.cmd
appveyor.yml Remove lit's --summary flag from buildbots. 2023-08-31 14:23:51 -04:00
CMakeLists.txt [runtimes] Don't link against compiler-rt explicitly when we use -nostdlib++ (#75089) 2023-12-13 13:57:48 -05:00
CREDITS.TXT [libcxx] Add mdspan/extents 2023-05-16 14:30:36 -07:00
LICENSE.TXT
TODO.TXT