mirror-llvm-project/libc/test
Jackson Stogel 921f7ca6be
[libc][cpp::string] Do not count null terminator in capacity() (#211918)
Currently, `capacity()` includes the null terminator of the backing
buffer, which does not align with C++20's `std::string`. That is,
`s.reserve(s.capacity())` should be a no-op. While there's no
requirement these be in-sync, it is less surprising to align its
behavior.

Also, this fixes the case where `reserve()` is called on an empty
string, where previously the null terminator was not set.
2026-07-24 15:59:21 -07:00
..
include [libc] Implement alloca.h header (#210150) 2026-07-16 21:43:12 +01:00
integration [libc] Implement pthread_setschedparam and getschedparam (#205770) 2026-07-23 17:59:56 +01:00
IntegrationTest [libc] Fix -Wshadow warning in IntegrationTest/test.cpp (#196858) 2026-05-11 16:06:20 -04:00
shared [libc] Migrate printf_core from stdio/ to __support/. (#208303) 2026-07-21 14:35:24 -07:00
src [libc][cpp::string] Do not count null terminator in capacity() (#211918) 2026-07-24 15:59:21 -07:00
UnitTest [libc] Make getauxval test hermetic (#210706) 2026-07-24 09:41:53 +02:00
utils [libc][NFC] Reduce the test size for math functions by default. (#199308) 2026-05-22 21:45:01 -04:00
CMakeLists.txt [libc][NFC] Add few options to allow users to skip building and running some tests. (#199474) 2026-05-29 12:52:11 -04:00
lit.cfg.py [libc] Implement lit-based test execution for Libc (#178746) 2026-02-13 18:39:54 +00:00
lit.site.cfg.py.in [libc] Honour LIBC_GPU_TEST_JOBS in lit test runs (#193797) 2026-04-24 08:20:03 +01:00